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
carouselRightArrow carousel controls on bottom
function carouselRightArrow(){ if($('#tdList-20').attr('videoID') === '') { return; } else if ($('#tdList-40').attr('videoID') === '' && currentSlideNumber % 2 === 0) { return; } $(".carousel").carousel('next'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function carouselLeftArrow(){\n $(\".carousel\").carousel('prev');\n}", "function slideRight() {\n var parent = $(this).closest('.carousel');\n var items = $.makeArray(parent.find('.item.hidden'));\n if (items.length == 0) {\n //already at the beginning\n return;\n }\n parent.find('.item.active').r...
[ "0.7415362", "0.70778155", "0.6995402", "0.6639654", "0.6595513", "0.65020454", "0.6482783", "0.6459831", "0.6432182", "0.64101416", "0.63862795", "0.635222", "0.6346088", "0.633173", "0.62737274", "0.62360436", "0.62141234", "0.6191207", "0.61566764", "0.61306673", "0.612369...
0.7360407
1
tooltipFunctions set timeouts for tool tips after hover
function tooltipFunctions() { $('[data-toggle="tooltip"]').tooltip(); //needed for tooltip $('[data-toggle="popover"]').popover(); $('.tdPlaylistButton').mouseenter(function(){ setTimeout(function(){ $('.tdPlaylistButton').tooltip('hide'); },1000); }); $('.browseChannelButton').mouseenter(function () { setTimeout(function () { $('.browseChannelButton').tooltip('hide'); }, 1000); }); $('.lightBoxMode').mouseenter(function () { setTimeout(function () { $('.lightBoxMode').tooltip('hide'); }, 1000); }); $('.channelSearchButton').mouseenter(function () { setTimeout(function () { $('.channelSearchButton').tooltip('hide'); }, 1000); }); $('.videoSearchButton').mouseenter(function () { setTimeout(function () { $('.videoSearchButton').tooltip('hide'); }, 1000); }); $('#videoStats .fa-bar-chart').mouseenter(function () { setTimeout(function () { $('#videoStats .fa-bar-chart').tooltip('hide'); }, 1000); }); $('#channelInfo .fa-list-alt').mouseenter(function () { setTimeout(function () { $('#channelInfo .fa-list-alt').tooltip('hide'); }, 1000); }); $('.listDropButton').mouseenter(function(){ setTimeout(function(){ $('.listDropButton').tooltip('hide'); },1000); }); $('.lastVideoButton').mouseenter(function(){ setTimeout(function(){ $('.lastVideoButton').tooltip('hide'); },1000); }); $('.rewindButton').mouseenter(function(){ setTimeout(function(){ $('.rewindButton').tooltip('hide'); },1000); }); $('.fastForwardButton').mouseenter(function(){ setTimeout(function(){ $('.fastForwardButton').tooltip('hide'); },1000); }); $('.nextVideoButton').mouseenter(function(){ setTimeout(function(){ $('.nextVideoButton').tooltip('hide'); },1000); }); $('.playButton').mouseenter(function(){ setTimeout(function(){ $('.playButton').tooltip('hide'); },1000); }); $('.pauseButton').mouseenter(function(){ setTimeout(function() { $('.pauseButton').tooltip('hide'); }, 1000); }); $('.listUpButton').mouseenter(function(){ setTimeout(function(){ $('.listUpButton').tooltip('hide'); },1000); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onMouseoverHdlr() {\t// on 'mouseover' handler\n\tsetTimeout(function(){ $(document).tooltip('disable');}, 10000);\n}", "function loadTooltips() {\n $('.hover-tooltip').tooltip({\n title: hoverGetData,\n html: true,\n container: 'body',\n placement: 'left',\n delay: {\n \"show\": 10...
[ "0.71992403", "0.7113785", "0.70022094", "0.69793123", "0.6839762", "0.6703711", "0.66234237", "0.6610458", "0.6593985", "0.659266", "0.6567556", "0.65529037", "0.653938", "0.6533368", "0.6518657", "0.6509811", "0.646731", "0.6464809", "0.6459965", "0.64533097", "0.6444338", ...
0.7206725
0
globals $:false, document:false, window:false
function escapeHTML(txt) { "use strict"; return txt.replace(/&/g, '&amp;') .replace(/"/g, '&quot;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function globals() {\n\t\textend(window, {\n\t\t\tconsole: {\n\t\t\t\tlog: function() {},\n\t\t\t\tdebug: function() {},\n\t\t\t\twarn: function() {},\n\t\t\t\terror: function() {}\n\t\t\t}\n\t\t});\n\t}", "function _BindGlobals(){\r\n\t\t\r\n\t\tif(typeof window.$$ !== \"undefined\"){\r\n\t\t\t_Original$$ = win...
[ "0.6772778", "0.6634781", "0.6595708", "0.6401843", "0.6401843", "0.6401843", "0.6401843", "0.6334024", "0.60928524", "0.6053914", "0.60460246", "0.6038665", "0.59892285", "0.591978", "0.5888547", "0.58406246", "0.5825588", "0.5806609", "0.5785175", "0.5768704", "0.57037807",...
0.0
-1
Manhattan distance function heuristic(node) = dx = abs(node.x goal.x) dy = abs(node.y goal.y) return D (dx + dy)} cb
function manhattanDist(node, goal) { const dx = Math.abs(node.coord.x - goal.coord.x); const dy = Math.abs(node.coord.y - goal.coord.y); const D = 1; // cost to move. return D * (dx + dy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ManhattanDistance(Point, Goal)\n\n{\n\n// linear movement - no diagonals - just cardinal directions (NSEW)\n\nreturn abs(Point.x - Goal.x) + abs(Point.y - Goal.y);\n\n}", "function getManhattanDistance(node1, node2) {\n return Math.abs(node1.row - node2.row) + Math.abs(node1.col - node2.col);\n}", "f...
[ "0.7753011", "0.76770097", "0.74512357", "0.73419005", "0.7307843", "0.7224117", "0.7218975", "0.7211172", "0.71770227", "0.71761674", "0.71761674", "0.7127225", "0.7118624", "0.69770825", "0.69427145", "0.6941074", "0.68061817", "0.6786723", "0.66226685", "0.65429634", "0.65...
0.8752469
0
cost is always one cuz we r basic af.
getCost() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "cost(x) {\n return Decimal.pow(4, x).mul(500)\n }", "cost(x) {\n return Decimal.pow(10, x).mul(1e5)\n }", "function updateCost(){\n\n\t\tGraph.instance.edges.forEach(function(key,edge){\n\t\t\tstate.edgePrevCost[edge.id] = edge.resources[1];\n\t\t\tif(mainLoo...
[ "0.6854147", "0.681506", "0.66482353", "0.66457003", "0.65212667", "0.64126545", "0.6265199", "0.6226671", "0.6214101", "0.62091196", "0.6146339", "0.61248606", "0.6121219", "0.60929126", "0.5967769", "0.5963418", "0.5961734", "0.5953773", "0.59191006", "0.59000367", "0.58888...
0.0
-1
boy i really should have used a graph lol.
getNeighbors(node) { const neighbors = []; Object.values(node.walls).forEach((side) => { if (side instanceof Cell) { neighbors.push(side); } }) return neighbors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function makeGraphable(){\n for(var i=0;i<segEndArr.length;i++){\n var segEnd=segEndArr[i],\n seq=segEnd[0],\n pos=segEnd[1],\n strand=segEnd[2];\n nodeArr[nodeArr.length]=\n { data:{id:i+\"\",\n seq:seq,\n pos:pos,\n strand:strand},\n...
[ "0.64856285", "0.6325893", "0.61929107", "0.6184125", "0.61650574", "0.61566806", "0.61418533", "0.61156416", "0.6092038", "0.60682696", "0.6037718", "0.59994495", "0.594222", "0.5931809", "0.59149826", "0.5895094", "0.5879907", "0.58645755", "0.584446", "0.5826433", "0.58223...
0.0
-1
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// S E T U P > F C M T O K E N /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
componentWillUnmount() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private public function m246() {}", "private internal function m248() {}", "protected internal function m252() {}", "static private internal function m121() {}", "static final private internal function m106() {}", "transient private internal function m185() {}", "function _____SHARED_functions_____(){}...
[ "0.63856184", "0.62841713", "0.6067007", "0.59216905", "0.57136774", "0.5672926", "0.5618498", "0.56134015", "0.55921197", "0.5487056", "0.5406856", "0.53805166", "0.5365708", "0.53544676", "0.5337355", "0.533716", "0.5327555", "0.5302181", "0.52864313", "0.5274113", "0.52447...
0.0
-1
Setup Impagination of Recent Users
setupImpaginationOfRecentUsers() { let _this = this; let dataset = new Dataset({ pageSize: 6, loadHorizon: 2, observe(datasetState) { _this.setState({datasetState}); }, // Where to fetch the data from. fetch(pageOffset, pageSize, stats) { return Api.search('', pageOffset + 1, pageSize) .then(data => data.users) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }, }); dataset.setReadOffset(0); this.setState({dataset}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function appendUsers() {\n queryRequest(uniqueProjectUsers);\n usersWithNumberOfIssues.length = 0;\n uniqueProjectUsers.forEach(function (user) {\n var numberOfIssues = 0;\n issuesOfProject.forEach(function (issue) {\n if (issue.assignee == user) {\n numberOfIssues+...
[ "0.55737907", "0.5531107", "0.5467993", "0.54639083", "0.54386425", "0.5284423", "0.5276269", "0.5271331", "0.5246111", "0.522518", "0.522354", "0.5222928", "0.5182142", "0.5179097", "0.5175135", "0.5166545", "0.5164172", "0.5163359", "0.5151947", "0.5141215", "0.5135702", ...
0.68643004
0
Where to fetch the data from.
fetch(pageOffset, pageSize, stats) { return Api.search('', pageOffset + 1, pageSize) .then(data => data.users) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n ...
[ "0.69252867", "0.69252867", "0.65940183", "0.65177715", "0.64565796", "0.6455869", "0.6388561", "0.63295484", "0.6316714", "0.61654437", "0.6002166", "0.59553105", "0.59474826", "0.5932523", "0.5888768", "0.58861244", "0.5856163", "0.5854854", "0.58530194", "0.584367", "0.582...
0.0
-1
Setup Impagination of Interest favourite Users
setupImpaginationOfInterestViewedMe() { let _this = this; let dataset = new Dataset({ pageSize: 15, loadHorizon: 15, observe(datasetStateOfInterestViewedMe) { _this.setState({datasetStateOfInterestViewedMe}); }, // Where to fetch the data from. fetch(pageOffset, pageSize, stats) { return Api.interests('viewedme', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({viewedmeFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }, }); dataset.setReadOffset(0); this.setState({dataset}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setupImpaginationOfInterestFavouritedMe() {\n let _this = this;\n let dataset = new Dataset({\n pageSize: 15,\n loadHorizon: 15,\n observe(datasetStateOfInterestFavouritedMe) {\n _this.setState({datasetStateOfInterestFavouritedMe});\n },\n // Where to fetch the data from.\n ...
[ "0.67429227", "0.6741619", "0.6103769", "0.5748758", "0.5719483", "0.5714232", "0.5703462", "0.5660014", "0.5633649", "0.56332153", "0.56228095", "0.5611474", "0.55891955", "0.5562773", "0.5557516", "0.555512", "0.55184865", "0.55113345", "0.5509464", "0.5507145", "0.54890865...
0.5599124
12
Where to fetch the data from.
fetch(pageOffset, pageSize, stats) { return Api.interests('viewedme', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({viewedmeFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n ...
[ "0.69259083", "0.69259083", "0.6594177", "0.6518197", "0.64598846", "0.64558184", "0.6388264", "0.6330855", "0.63169414", "0.6165941", "0.6003606", "0.5959182", "0.59480315", "0.5932711", "0.588857", "0.5886765", "0.58561623", "0.5855936", "0.5854681", "0.5843917", "0.5822583...
0.0
-1
Setup Impagination of Interest favourite Users
setupImpaginationOfInterestFavourite() { let _this = this; let dataset = new Dataset({ pageSize: 15, loadHorizon: 15, observe(datasetStateOfInterestFavourite) { _this.setState({datasetStateOfInterestFavourite}); }, // Where to fetch the data from. fetch(pageOffset, pageSize, stats) { return Api.interests('favourited', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({FavouriteFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }, }); dataset.setReadOffset(0); this.setState({dataset}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setupImpaginationOfInterestFavouritedMe() {\n let _this = this;\n let dataset = new Dataset({\n pageSize: 15,\n loadHorizon: 15,\n observe(datasetStateOfInterestFavouritedMe) {\n _this.setState({datasetStateOfInterestFavouritedMe});\n },\n // Where to fetch the data from.\n ...
[ "0.67429227", "0.6103769", "0.5748758", "0.5719483", "0.5714232", "0.5703462", "0.5660014", "0.5633649", "0.56332153", "0.56228095", "0.5611474", "0.5599124", "0.55891955", "0.5562773", "0.5557516", "0.555512", "0.55184865", "0.55113345", "0.5509464", "0.5507145", "0.54890865...
0.6741619
1
Where to fetch the data from.
fetch(pageOffset, pageSize, stats) { return Api.interests('favourited', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({FavouriteFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n ...
[ "0.69252867", "0.69252867", "0.65940183", "0.65177715", "0.64565796", "0.6455869", "0.6388561", "0.63295484", "0.6316714", "0.61654437", "0.6002166", "0.59553105", "0.59474826", "0.5932523", "0.5888768", "0.58861244", "0.5856163", "0.5854854", "0.58530194", "0.584367", "0.582...
0.0
-1
Setup Impagination of favourited Me Users
setupImpaginationOfInterestFavouritedMe() { let _this = this; let dataset = new Dataset({ pageSize: 15, loadHorizon: 15, observe(datasetStateOfInterestFavouritedMe) { _this.setState({datasetStateOfInterestFavouritedMe}); }, // Where to fetch the data from. fetch(pageOffset, pageSize, stats) { return Api.interests('favouritedme', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({FavouriteMeFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }, }); dataset.setReadOffset(0); this.setState({dataset}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initializeUsers() {\n username = localStorage.getItem('staySignedInAs')\n if (username !== null) {\n useDefaults = localStorage.getItem('Defaults Used?' + username + 'Kixley@65810')\n useDefaults = parseBool(useDefaults)\n if (useDefaults === false) {\n useDefaultDiff = localStorage.getIte...
[ "0.60749894", "0.5985546", "0.58625597", "0.5838326", "0.5786993", "0.5782261", "0.5764704", "0.5751174", "0.5722505", "0.57159996", "0.5688538", "0.56795555", "0.5676403", "0.56520355", "0.5623378", "0.5611906", "0.56118363", "0.5596111", "0.55949455", "0.5582101", "0.557686...
0.61645764
0
Where to fetch the data from.
fetch(pageOffset, pageSize, stats) { return Api.interests('favouritedme', pageOffset + 1, pageSize) .then(data => { if (data.users.length != 0) return data.users; else { _this.setState({FavouriteMeFlag: true}); return; } }) .catch(error => { _this.refs.errAlert.open(); _this.setState({ errMsg: 'Looks like you are offline now. Please connect your connection and try again', }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "fetchData() {\n this.initLoading();\n let qs = this.setAndGetQuerySetFromSandBox(this.view, this.qs_url);\n this.data.instance = qs.cache = qs.model.getInstance({}, qs);\n this.setLoadingSuccessful();\n this.getParentInstancesForPath();\n ...
[ "0.69259083", "0.69259083", "0.6594177", "0.6518197", "0.64598846", "0.64558184", "0.6388264", "0.6330855", "0.63169414", "0.6165941", "0.6003606", "0.5959182", "0.59480315", "0.5932711", "0.588857", "0.5886765", "0.58561623", "0.5855936", "0.5854681", "0.5843917", "0.5822583...
0.0
-1
================================================================================================================================= //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// =================================================================================================================================
renderRecentUsers() { if (!this.state.datasetState) return null; const that = this; return this.state.datasetState.map(function(user, index) { if ( !user || !user.content || !user.content.meta || (user.isPending && !user.isSettled) ) { return <SampleDashBoardCard />; } return ( <DashboardCardView key={index} user={user.content} onPress={that.gotoUserProfile} /> ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.6729943", "0.6611446", "0.63060606", "0.62319", "0.6216592", "0.6116303", "0.5943788", "0.59138435", "0.5856624", "0.57521236", "0.5735237", "0.57115304", "0.5701333", "0.5672453", "0.5668359", "0.5657229", "0.5611546", "0.5588293", "0.55465025", "0.5486767", "0.5451525", ...
0.0
-1
================================================================================================================================= //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// =================================================================================================================================
renderFavouritesUsers() { if (!this.state.datasetStateOfInterestFavourite) return null; const that = this; return this.state.datasetStateOfInterestFavourite.map(function( user, index, ) { if ( !user || !user.content || !user.content.meta || (user.isPending && !user.isSettled) ) { return <SampleDashBoardCard />; } return ( <DashboardCardView key={index} user={user.content} onPress={that.gotoUserProfile} /> ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.67308563", "0.66128814", "0.63079476", "0.6233773", "0.6218085", "0.6118529", "0.5945227", "0.59151125", "0.5857343", "0.57526714", "0.57366633", "0.57138693", "0.57028174", "0.5672835", "0.5669001", "0.5657369", "0.5612549", "0.55886316", "0.5548221", "0.54894483", "0.545...
0.0
-1
================================================================================================================================= //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// =================================================================================================================================
renderViewedMeUsers() { if (!this.state.datasetStateOfInterestViewedMe) return null; const that = this; return this.state.datasetStateOfInterestViewedMe.map(function(user, index) { if ( !user || !user.content || !user.content.meta || (user.isPending && !user.isSettled) ) { return <SampleDashBoardCard />; } return ( <DashboardCardView key={index} user={user.content} onPress={that.gotoUserProfile} /> ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.6729859", "0.66122717", "0.630716", "0.62325823", "0.62169236", "0.61173457", "0.59441024", "0.591412", "0.5855924", "0.57515156", "0.5735392", "0.57140607", "0.5701714", "0.5671558", "0.5668162", "0.5656726", "0.5611645", "0.5587862", "0.554729", "0.5487636", "0.54523206"...
0.0
-1
================================================================================================================================= //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// =================================================================================================================================
renderFavouritedMe() { if (!this.state.datasetStateOfInterestFavouritedMe) return null; const that = this; return this.state.datasetStateOfInterestFavouritedMe.map(function( user, index, ) { if ( !user || !user.content || !user.content.meta || (user.isPending && !user.isSettled) ) { return <SampleDashBoardCard />; } return ( <DashboardCardView key={index} user={user.content} onPress={that.gotoUserProfile} /> ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.67311627", "0.66135246", "0.6307574", "0.62338483", "0.6218665", "0.61182594", "0.5945853", "0.59149456", "0.58576196", "0.57541364", "0.573734", "0.57148004", "0.5703126", "0.5673742", "0.5669788", "0.5658106", "0.5612571", "0.5589894", "0.5548237", "0.54882467", "0.54532...
0.0
-1
================================================================================================================================= //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// =================================================================================================================================
render() { return ( <React.Fragment> <CommonHeader title="GoMarry" /> <ScrollView style={[styles.mainContainerHome, {backgroundColor: '#F0F8FF'}]} showsVerticalScrollIndicator={false} refreshControl={ <RefreshControl refreshing={this.state.refreshing} onRefresh={this._onRefresh} /> }> <View style={[ styles.row, { marginTop: 10, marginLeft: 5, }, ]}> <Text style={styles.maintitle}>Recent Users</Text> <TouchableOpacity onPress={() => // this.props.navigation.navigate("AllRecentUsersScreen") this.props.navigation.navigate('ViewAll', { title: 'Recent Users', filter: 'recent', }) } style={{backgroundColor: '#F0F8FF'}}> <Text style={styles.viewall}>View all >></Text> </TouchableOpacity> </View> <ScrollView showsHorizontalScrollIndicator={false} horizontal={true} style={{backgroundColor: '#F0F8FF'}}> {this.renderRecentUsers()} </ScrollView> {!this.state.FavouriteFlag && ( <React.Fragment> <View style={[ styles.row, { marginTop: 1, marginLeft: 5, }, ]}> <Text style={styles.maintitle}>Favourited Users</Text> <TouchableOpacity onPress={() => this.props.navigation.navigate('ViewAll', { section: 'favourited', title: 'Favourite Users', }) } style={{backgroundColor: '#F0F8FF'}}> <Text style={styles.viewall}>View all >></Text> </TouchableOpacity> </View> <ScrollView showsHorizontalScrollIndicator={false} horizontal={true} style={{backgroundColor: '#F0F8FF'}}> {this.renderFavouritesUsers()} </ScrollView> </React.Fragment> )} {!this.state.viewedmeFlag && ( <React.Fragment> <View style={styles.row}> <Text style={styles.maintitle}>Viewed me</Text> <TouchableOpacity onPress={() => this.props.navigation.navigate('ViewAll', { section: 'viewedme', title: 'Viewed Me', }) }> <Text style={styles.viewall}>View all >></Text> </TouchableOpacity> </View> <ScrollView showsHorizontalScrollIndicator={false} horizontal={true} style={{backgroundColor: '#F0F8FF'}}> {this.renderViewedMeUsers()} </ScrollView> </React.Fragment> )} {!this.state.FavouriteMeFlag && ( <React.Fragment> <View style={styles.row}> <Text style={styles.maintitle}>Favourited me</Text> <TouchableOpacity onPress={() => this.props.navigation.navigate('ViewAll', { section: 'favouritedme', title: 'Favourited Me', }) }> <Text style={styles.viewall}>View all >></Text> </TouchableOpacity> </View> <ScrollView showsHorizontalScrollIndicator={false} horizontal={true}> {this.renderFavouritedMe()} </ScrollView> </React.Fragment> )} {/* ERROR POPUP */} <Modal style={[styles.errAlert, styles.errAlert3]} position={'center'} ref={'errAlert'} backdrop={true} coverScreen={true} backdropPressToClose={false}> <View> <View style={{ justifyContent: 'center', alignItems: 'center', }}> <Icon type="antdesign" name="closecircle" size={50} color={'#FC3838'} /> </View> <View style={{paddingLeft: 20, paddingRight: 10, paddingTop: 15}}> <Text style={{textAlign: 'center', fontSize: 14}}> {this.state.errMsg} </Text> </View> <View style={{marginTop: 10}}> <Text onPress={() => this.refs.errAlert.close()} style={{ fontFamily: Fonts.app_font, color: '#FC3838', fontWeight: 'bold', textAlign: 'center', }}> Review Credientials ! </Text> </View> </View> </Modal> <Modal style={[styles.errAlert, styles.errAlert3]} position={'center'} x ref={'messageInbox'} backdrop={true} coverScreen={true} backdropPressToClose={true}> <View> <View style={{ justifyContent: 'center', alignItems: 'center', }}> <Icon type="antdesign" name="message1" size={50} color={'#FC3838'} /> </View> <View style={{paddingLeft: 20, paddingRight: 10, paddingTop: 15}}> <Text style={{ textAlign: 'center', fontSize: 14, fontWeight: 'bold', }}> {this.state.messageOverview} </Text> <Text style={{textAlign: 'center', fontSize: 14}}> {this.state.message} </Text> </View> <View style={{marginTop: 10}}> <TouchableOpacity style={styles.loginButton} onPress={() => { this.refs.messageInbox.close(); this.props.navigation.navigate('SentMail', { friendId: this.state.messageFriendId, userName: this.state.messageUserName, }); }}> <LinearGradient colors={['#FC3838', '#F52B43', '#ED0D51']} start={{x: 0.7, y: 1.2}} end={{x: 0.0, y: 0.7}} style={{ height: 48, width: 240, alignItems: 'center', justifyContent: 'center', borderRadius: 50, }}> <Text style={{color: 'white', fontWeight: 'bold'}}> Check Your inbox now... </Text> </LinearGradient> </TouchableOpacity> </View> </View> </Modal> <Modal style={{ borderColor: '#FC3838', shadowColor: 'rgb(252, 56, 56)', marginTop: 10, height: 180, width: 300, backgroundColor: 'white', borderRadius: 10, justifyContent: 'center', alignItems: 'center', }} position={'center'} x ref={'notificationPopup'} backdrop={true} coverScreen={true} backdropPressToClose={true}> <View> <View style={{ justifyContent: 'center', alignItems: 'center', }}> <Icon type="material" name="notifications-active" size={50} color={'#FC3838'} /> </View> <View style={{paddingLeft: 20, paddingRight: 10, paddingTop: 15}}> <Text style={{ textAlign: 'center', fontSize: 14, fontWeight: 'bold', }}> {this.state.notificationMessageOverview} </Text> <Text style={{textAlign: 'center', fontSize: 14}}> {this.state.notificationMessage} </Text> </View> <View style={{marginTop: 10}} /> </View> </Modal> <Modal style={{ borderColor: '#FC3838', shadowColor: 'rgb(252, 56, 56)', marginTop: 10, height: 95, width: 300, backgroundColor: 'white', borderRadius: 10, justifyContent: 'center', alignItems: 'center', }} position={'center'} x ref={'featuresNotify'} backdrop={true} coverScreen={true} backdropPressToClose={true}> <Image style={{ height: 80, width: 80, borderRadius: 50, marginTop: -30, marginBottom: 20, alignSelf: 'center', // float : 'right' }} resizeMode="cover" source={Api.uri( this.state.notifySenderImg ? Api._base + '/media/image/' + this.state.notifySenderImg + '/3' : Api._base + '/media/dpi/' + 1 + '/3', )} /> <View> <View style={{paddingLeft: 20, paddingRight: 10, marginTop: -5}}> <Text style={{ // textAlign: "center", fontSize: 12, fontWeight: 'bold', }}> {this.state.notifySenderDesc} </Text> <Text style={{textAlign: 'center', fontSize: 12}}> {`${this.state.notificationMessage}`} </Text> </View> <View style={{marginTop: 10}} /> </View> </Modal> </ScrollView> </React.Fragment> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "transient private internal function m185() {}", "transient private protected internal function m182() {}", "transient protected internal function m189() {}", "transient final protected i...
[ "0.6729943", "0.6611446", "0.63060606", "0.62319", "0.6216592", "0.6116303", "0.5943788", "0.59138435", "0.5856624", "0.57521236", "0.5735237", "0.57115304", "0.5701333", "0.5672453", "0.5668359", "0.5657229", "0.5611546", "0.5588293", "0.55465025", "0.5486767", "0.5451525", ...
0.0
-1
email varification for forgotbarcode.php page
function checkemailadd(form99,email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var emailaddress = document.forms["form99"].elements["email"].value; var errordiv = document.getElementById("error-panel"); if(reg.test(emailaddress) == false) { errordiv.style.display = 'block'; errordiv.innerHTML = "Invalid email addess. Please try <a href=\"https://hclibrary.org/mobile/forgotbarcode.php\">again</a>"; return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ULOGA_EMAIL(a, n) {\r\n if (a != undefined) {\r\n if (a) {\r\n TBL[\"AKK\"][\"AKK_EML_TXT\"][n].innerHTML = \"verified\";\r\n TBL[\"AKK\"][\"AKK_EML_BTN\"][n].style.display = \"block\";\r\n TBL[\"AKK\"][\"AKK_EML_BTN\"][n].onclick = function () {\r\n RST_PSS(n);\r\n };\r\n ...
[ "0.61423934", "0.56225586", "0.56182003", "0.5594256", "0.5585382", "0.5563298", "0.5517124", "0.54840153", "0.54822594", "0.54721", "0.5436404", "0.5415399", "0.5408336", "0.5401026", "0.5375203", "0.5365766", "0.53631616", "0.5349234", "0.5342271", "0.53398955", "0.53180027...
0.55781823
5
This function reads a series of incomes from comma separated values in the string text and then formats the income and tax in a table and returns the string
function incomeList(text) { var incomes = text.split(","); var result = []; var taxes = []; for (var i = 0; i < incomes.length; ++i) { taxes.push(calculateTax(incomes[i])); result.push(incomes[i]+","+taxes[i]); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatData(strng){\n\twhile(strng.includes(',')){\n\t\tstrng = strng.replace(',', '.');\n\t}\n\treturn strng;\n}", "function generalCsv(data1,string){\n var rows=data1.toString().split(\"\\r\\n\");\n headers=rows[0].split(\",\");\n //console.log(headers);\n for(var i=1;i<rows.length-1;i++){\n ...
[ "0.55876917", "0.5577501", "0.5101294", "0.5040687", "0.49587247", "0.49327037", "0.4917613", "0.48893017", "0.48555085", "0.48480105", "0.48451138", "0.47711718", "0.47321877", "0.47220477", "0.47209045", "0.47204733", "0.47196254", "0.47135848", "0.46891782", "0.468384", "0...
0.6810599
0
A proxy for dynamic bounding volume tree broadphase.
function DBVTProxy ( shape ) { Proxy.call( this, shape); // The leaf of the proxy. this.leaf = new DBVTNode(); this.leaf.proxy = this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DBVTBroadPhase() {\n\n _BroadPhase.BroadPhase.call(this);\n\n this.types = _constants.BR_BOUNDING_VOLUME_TREE;\n\n this.tree = new _DBVT.DBVT();\n this.stack = [];\n this.leaves = [];\n this.numLeaves = 0;\n}", "get boundingVolume() {\n return this._boundingVolume;\n }", "get bou...
[ "0.6457658", "0.5917458", "0.5917458", "0.5755734", "0.5681657", "0.5678009", "0.55684114", "0.55684114", "0.5490958", "0.5490958", "0.53836924", "0.5365139", "0.53205574", "0.5250929", "0.5226998", "0.5213931", "0.5208315", "0.5172767", "0.5133957", "0.5130211", "0.51214534"...
0.5174375
17
ritual. Some days he climbs more stairs than others depending on the number of students he must train in the morning. He is curious how many stairs might be climbed over the next 20 years and has spent a year marking down his daily progress. The sum of all the stairs logged in a year will be used for estimating the number he might climb in 20. 20_year_estimate = one_year_total 20 You will receive the following data structure representing the stairs Suzuki logged in a year. You will have all data for the entire year so regardless of how it is logged the problem should be simple to solve. stairs = [sunday,monday,tuesday,wednesday,thursday,friday,saturday] Make sure your solution takes into account all of the nesting within the stairs array. Each weekday in the stairs array is an array. sunday = [6737, 7244, 5776, 9826, 7057, 9247, 5842, 5484, 6543, 5153, 6832, 8274, 7148, 6152, 5940, 8040, 9174, 7555, 7682, 5252, 8793, 8837, 7320, 8478, 6063, 5751, 9716, 5085, 7315, 7859, 6628, 5425, 6331, 7097, 6249, 8381, 5936, 8496, 6934, 8347, 7036, 6421, 6510, 5821, 8602, 5312, 7836, 8032, 9871, 5990, 6309, 7825] Your function should return the 20 year estimate of the stairs climbed using the formula above.
function stairsIn20(s){ return s.reduce((arr, day) => arr.concat(day)).reduce((acc, n) => acc + n) * 20; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculate(initial_age, initial_nest_egg, initial_salary, annual_contrib_percent, \n retire_age, annual_nest_egg_grow_percent, lame_age, death_age, \n active_years_income, lame_years_income) {\n \n /* Order of operations\n * \n * Not r...
[ "0.68559957", "0.65934247", "0.63690645", "0.62757623", "0.62037265", "0.6080407", "0.59720165", "0.5853355", "0.5654275", "0.5634213", "0.5633413", "0.56242806", "0.56235933", "0.561666", "0.56108", "0.55791646", "0.5574122", "0.5573483", "0.55084497", "0.54886675", "0.54743...
0.6262802
4
modify value with the column of choice from housingDataState
function getScript(url, cb) { const script = document.createElement('script'); script.src = url; script.onload = cb; document.head.appendChild(script); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setInitialValueOfColumn() {\n this.columns.map((item) => {\n if (item.hasOwnProperty('initialValue')) {\n this.hot.setDataAtRowProp(0, item.data, item.initialValue)\n }\n return true;\n })\n }", "[DATA_TABLE_SET_MUTATION] (state, data) {\n s...
[ "0.616177", "0.606097", "0.59973973", "0.5926674", "0.5871703", "0.5736971", "0.5694443", "0.5667889", "0.5659045", "0.56331307", "0.5623441", "0.5622193", "0.5603445", "0.55776924", "0.55660963", "0.55265075", "0.55235", "0.55098337", "0.5508028", "0.550722", "0.5485833", ...
0.0
-1
Complete the function below to find the max number of passing numbers. You may refer to this MDN document about rest parameters of the function.
function max(...numbers){ // your code here, for-loop method preferred var arr = [...numbers]; var min = arr[0]; var max = arr[0]; var average = 0; for(var i = 0; i < arr.length; i++) { if(arr[i] > max) max = arr[i]; } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function largest(){\r\n // parse arguments into an array\r\n var args = [].slice.call(arguments);\r\n var maxNum = 0;\r\n\r\n // .. do something with each element of args\r\n args.forEach(function(value,idx,list) {\r\n if (value > maxNum) {\r\n maxNum = value;\r\n }\r\n });\r\n\...
[ "0.7262665", "0.7014868", "0.6792167", "0.6754173", "0.67337924", "0.6678933", "0.6654023", "0.6643561", "0.66383725", "0.66086507", "0.6577944", "0.6557997", "0.6538309", "0.65085304", "0.65076965", "0.63925403", "0.6387814", "0.6379741", "0.63591087", "0.6313204", "0.629592...
0.0
-1
This option is present if the user has an IAP autorenewing account but has set up Stripe billing info to be charged once the autorenewal cancels.
function confirmRemoveBillingInfo(expirationDate) { var bodyHTML = '<p style="width:500px;">' + labels.removing_your_billing_information_will + displayHumanReadableDate(expirationDate, false, true) + labels.if_your_in_app_purchase + ' </p>'; var headerHTML = labels.remove_billing_information; var footerHTML = '<div class="button" id="removeBillingInfoButton" onclick="downgradePremiumAccount(true)">'+labels.remove+'</div>'; footerHTML += '<div class="button" id="cancelRemoveBillingInfoButton" onclick="hideModalContainer()">'+labels.cancel+'</div>'; displayModalContainer(bodyHTML, headerHTML, footerHTML); document.getElementById('modal_overlay').onclick = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setIsBilled(value) {\n orderServices.setOrderProperty({\n path: \"billed\",\n value: value\n });\n var who = director.getLogin();\n if (who) {\n orderServices.setOrderProperty({\n path: \"billed.who\",\n value: who\n });\n }\n }", "checkForInactivePaymen...
[ "0.53151274", "0.51480275", "0.51414967", "0.5074032", "0.4967911", "0.49616206", "0.49183705", "0.48851493", "0.48399845", "0.48199344", "0.47998393", "0.4750718", "0.4732539", "0.47246787", "0.47167954", "0.471679", "0.4712317", "0.4708599", "0.46717653", "0.4657523", "0.46...
0.46294555
26
Delete server data functions
function showDeleteServerDataModal() { var header = labels.confirm_password; var body = '<div id="delete_data_body">'; body += '<div>' + labels.please_reenter_your_password + '</div>'; body += '<input type="password" id="confirm_password_text_field" onkeyup="shouldEnableConfirmPasswordButton(event, this)"/>'; body += '</div>'; var footer = '<div id="delete_data_footer">'; footer += '<div class="button" onclick="hideModalContainer()">' + labels.cancel + '</div>'; footer += '<div class="button disabled" id="confirm_password_button">' + labels.confirm + '</div>'; footer += '</div>'; displayModalContainer(body, header, footer); document.getElementById('confirm_password_text_field').focus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function serverDB() {\n\n /**\n * GET parameter\n * @type {object}\n */\n var data = prepareData( { del: key }, user, password );\n\n // send dataset key to server interface\n if ( self.socket ) useWebsocket( data, onResponse ); else useHttp( data, onResponse );\...
[ "0.70755976", "0.672347", "0.6722779", "0.6719038", "0.6691405", "0.6644143", "0.66351783", "0.6627648", "0.6518977", "0.64986247", "0.6478045", "0.6474643", "0.6465791", "0.6415077", "0.6343697", "0.63297224", "0.6198863", "0.61928225", "0.6190085", "0.61643255", "0.6158026"...
0.0
-1
PROFILE IMAGE FUNCTIONS vars s3baseUrl, imageGuid, and imageTimestamp are declared in AppSettingsContentAccount.php
function populateProfileImageDivs() { if(imageGuid.length == 0 || imageTimestamp == 0) { document.getElementById('profile_image_details').innerHTML = getHTMLForImageUploader(); document.getElementById('profile_image_edit').style.display = 'none'; document.getElementById('profile_image_remove').style.display = 'none'; } else { var imageURL = s3baseUrl + imageGuid + '?lastmod=' + imageTimestamp; document.getElementById('profile_image_details').innerHTML = '<img src="' + imageURL + '" width="50" height="50"/>'; document.getElementById('profile_image_edit').style.display = 'inline-block'; document.getElementById('profile_image_remove').style.display = 'inline-block'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function InitAWSConfigurations()\n{\n bucketName = $(\"#hdnBucketName\").val();\n\n bucketStartURL = $(\"#hdnBucketStartURL\").val();\n\n AWS.config.update({\n accessKeyId: $(\"#hdnAWSAccessKey\").val(),\n secretAccessKey: $(\"#hdnAWSSecretKey\").val(),\n region: $(\"#hdnBucketRegion\...
[ "0.6444883", "0.64243245", "0.5977877", "0.5975769", "0.5969918", "0.5818951", "0.5779569", "0.574534", "0.5729804", "0.5690275", "0.56793416", "0.566848", "0.5646089", "0.56358355", "0.5631055", "0.56105316", "0.55905163", "0.55852234", "0.5571444", "0.5570606", "0.5560957",...
0.6025524
2
REMOVE USER FROM USERS ARRAY hikesRouter.patch('/users/:id', Hike.removeUser); CRUD For HikesRouter [ADMIN ONLY]: // INDEX hikesRouter.get('/', Hike.index) SHOW 1 hikesRouter.get('/:id', Hike.show) CREATE NEW HIKE hikesRouter.post('/', Hike.create) DESTROY hikesRouter.delete('/:id', Hike.destroy) MIDDLEWARE:
function isLoggedIn(req, res, next) { if (req.isAuthenticated()) return next(); res.redirect('/'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "removeUser(req, res){\n \n }", "function usersDelete(req, res){\n User.findByIdAndRemove({_id: req.params.id}, function(err){\n if (err) return res.status(404).json({message: 'Something went wrong.'});\n res.status(200).json({message: 'User has been successfully deleted'});\n });\n}", "function...
[ "0.7132547", "0.6854584", "0.681756", "0.68115497", "0.6782678", "0.6742071", "0.6731224", "0.67279726", "0.6675233", "0.66254824", "0.6589373", "0.65370697", "0.65047073", "0.6500129", "0.6496283", "0.6493495", "0.6490316", "0.6478322", "0.6457355", "0.6453442", "0.64534235"...
0.0
-1
Set a dropdown list to the value
function setSelectedValue(selectObj, valueToSet) { for (var i = 0; i < selectObj.options.length; i++) { if (selectObj.options[i].text == valueToSet) { selectObj.options[i].selected = true; return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDropdownOption (val) {\n return model.inputs.dropDownOption = val;\n}", "function TagMenu_setValue(theValue) {\r\n this.listControl.setValue(theValue);\r\n}", "function setDropDown() {\n KintoneConfigHelper.getFields(['SINGLE_LINE_TEXT', 'LINK', 'SPACER']).then(function(resp) {\n var $l...
[ "0.74934256", "0.71241444", "0.69861215", "0.68620574", "0.68416333", "0.6734685", "0.67224115", "0.66778296", "0.6624008", "0.64516026", "0.6445109", "0.64438146", "0.642357", "0.6414628", "0.64045495", "0.63920355", "0.63865685", "0.636243", "0.633548", "0.6333772", "0.6321...
0.0
-1
Set a textbox to the value
function setTextValue(selectObj, valueToSet) { selectObj.value = fixLen(valueToSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ui_setInputValue(id_inputbox, str_value){\n\tui_getObjById(id_inputbox).value = str_value;\n}", "function updateTextBox(value) {\n $(\"#UID\").val(value);\n}", "setTextboxValue(value) {\n var input = this.control_input;\n var changed = input.value !== value;\n\n if (changed) {\n input.v...
[ "0.7594727", "0.72373295", "0.7176789", "0.71364766", "0.7005793", "0.69997257", "0.699511", "0.6988592", "0.6980026", "0.6933815", "0.69240016", "0.68097097", "0.679592", "0.67500293", "0.67161244", "0.67161244", "0.670929", "0.6659442", "0.66584396", "0.6651209", "0.6617797...
0.61765873
54
Get a dropdown value
function getSelectedValue(selectObj) { return selectObj.options[selectObj.selectedIndex].value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetDropdownValue(name, form)\n{\n var field = GetFieldNamed(name, form);\n return field.options[field.selectedIndex].value;\n}", "function getValue() {\n return selectedValue;\n }", "function RetrieveDropDownSingleValue(id) {\n var value = \"\";\n var dropdownSingleSelect = document.ge...
[ "0.73979044", "0.73279685", "0.72848785", "0.71833974", "0.7160209", "0.71352315", "0.7120174", "0.7112743", "0.7111231", "0.708179", "0.70379066", "0.7015272", "0.70056635", "0.6934773", "0.6914709", "0.690286", "0.6893509", "0.6869383", "0.68444073", "0.6828814", "0.6822463...
0.6559987
34
Get a textbox value
function getTextValue(selectObj, hour) { var value = parseInt(selectObj.value, 10); if (isNaN(value) || (hour && (value < 0 || value > 23)) || (!hour && (value < 0 || value > 59))) { selectObj.style.backgroundColor = 'red'; return "X"; } return fixLen(String(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInputTextValue(id){\n return document.getElementById(id).value\n}", "get value() {\n var textbox = this.getElement({type: \"textbox\"});\n return textbox.getNode().value;\n }", "function getInputVal(id){\r\n return document.getElementById(id).value;\r\n }", "function getInp...
[ "0.77973306", "0.7444833", "0.73650795", "0.73250264", "0.73250264", "0.73250264", "0.73121536", "0.7311329", "0.7311329", "0.7311329", "0.7311329", "0.7311329", "0.7282845", "0.7279629", "0.7259832", "0.72402066", "0.7231911", "0.72188634", "0.7198059", "0.71952426", "0.7190...
0.0
-1
Fix a string to 2 characters long prefixing a zero
function fixLen(inStr) { if (inStr == null || inStr.length > 1) return inStr; return '0' + inStr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function withLeadingZero2Dig(s) {\n return (\"0\" + s).slice(-2);\n }", "function padZero(str) {\n var len = 2;\n var zeros = new Array(len).join('0');\n return (zeros + str).slice(-len);\n }", "function zfill(str, len) {\n while (str.length < len) {...
[ "0.78329784", "0.7487287", "0.7460035", "0.74514824", "0.73593175", "0.7344667", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", "0.7343403", ...
0.69031227
87
Extract parameters from URL
function getParameterByName(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex .exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParametersFromUrl() {\n let queryDict = {}\n location.search.substr(1).split(\"&\").forEach(function(item) {queryDict[item.split(\"=\")[0]] = item.split(\"=\")[1]})\n return queryDict\n}", "function parseUrlParams() {\n var search = window.location.search;\n search = search.charAt(0) === \...
[ "0.77683556", "0.75026023", "0.7441525", "0.738682", "0.7306258", "0.72993666", "0.72871643", "0.7279341", "0.72576153", "0.7248794", "0.7238331", "0.7231521", "0.72039133", "0.7200246", "0.71875745", "0.7184327", "0.71532637", "0.71391886", "0.7138637", "0.711294", "0.708335...
0.0
-1
secret key is in index.js in functions
function App() { const [{}, dispatch] = useStateValue(); //this one is added after user: null is assigned in reducer //we need to know who logged in so we require a useeffect () useEffect(() => { //will only run once when we sign in for displaying who signed in auth.onAuthStateChanged((authUser) => { console.log("the user is >>>", authUser); //This is the command for listener during log in and log out if (authUser) { dispatch({ type: "SET_USER", //this shall add the user to the data layer till u r logged in user: authUser, }); //the user just logged in } else { //the user is logged out. dispatch({ type: "SET_USER", //this shall add the user to the data layer till u r logged in user: null, // because the user logged out so no need to have his/her name... it is indicating nobody is logged in }); } }); }, []); // after you wrote this user effect part ... go to reducer to add user = null return ( //BEM convention for styling (App to app)....software installation done and //the following router part(or word) comes after long time and the whole code is wrapped //up inside it to transit into page of checking out with all the items in it //after wrapping to router then use switch command(and inside the route command) to render home and header by putting both inside the <Switch> //IMP : ALWAYS HAVE THE DEFAULT ROUTE AT THE BOTTOM AND TRANSITION PAGES AT THE TOP LIKE 'CHECKOUT' <Router> <div className="app"> <Switch> <Route path="/orders"> <Header /> <Orders /> </Route> <Route path="/login"> <Login /> </Route> <Route path="/checkout"> <Header /> <Checkout /> </Route> <Route path="/payment"> <Header /> <Elements stripe={promise}> <Payment /> </Elements> </Route> <Route path="/"> <Header /> <Home /> <Footer /> </Route> </Switch> </div> </Router> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function secretPassword() {\n var password = 'xh38sk';\n return {\n \t//Code here\n }\n }", "getSecret () {\n const secret = crypto.randomBytes(32);\n const hash = crypto.createHash('sha256').update(secret).digest('hex');\n\n return {\n secret: secret,\n hash: hash\n };\n }", "fun...
[ "0.71327895", "0.709122", "0.7071455", "0.6973165", "0.6935881", "0.67832154", "0.67756695", "0.6748261", "0.66952235", "0.6694123", "0.66216683", "0.66216683", "0.6527126", "0.6506864", "0.65040874", "0.64982074", "0.64558643", "0.64101636", "0.6357602", "0.6325487", "0.6322...
0.0
-1
Get weather by city name
getWeatherInfo(){ let url = 'https://api.openweathermap.org/data/2.5/weather?q=' + this.state.cityname + '&units=metric&appid=ce0cb4b99e8ee814c20a4f76609c8196' fetch(url) .then(response => response.json()) .then(data => { console.log(data); // let tempData = JSON.stringify(data); // console.log(tempData); // alert(tempData); this.processData(data); }) .catch(function(error){ console.log(error.message); throw error.message; }); // this.getForecast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function searchedCity(city) {\n let apiKey = \"47946c44662c2450dc8f43f4b76c1cb0\";\n let apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=${city}&units=metric`;\n axios.get(`${apiUrl}&appid=${apiKey}`).then(showTemp);\n}", "function searchWeather(city) {\n fetch(`https://api.openweathermap.org/d...
[ "0.78897494", "0.7885052", "0.7881585", "0.7852856", "0.7845445", "0.7805343", "0.7790826", "0.7769335", "0.77667", "0.77243775", "0.77131796", "0.7709397", "0.77056307", "0.767693", "0.76720977", "0.7671139", "0.7631682", "0.76061904", "0.7560127", "0.7553857", "0.75480926",...
0.0
-1
Get weather by coordinates
getWeather(){ // Construct the API url to call let url = 'https://api.openweathermap.org/data/2.5/weather?lat=' + this.state.latitude + '&lon=' + this.state.longitude + '&units=metric&appid=ce0cb4b99e8ee814c20a4f76609c8196'; // console.log(url); // Call the API, and set the state of the weather forecast fetch(url) .then(response => response.json()) .then(data => { console.log(data); // let tempData = JSON.stringify(data); // console.log(tempData); // alert(tempData); this.processData(data); }) .catch(function(error){ console.log(error.message); throw error.message; }); // this.getForecast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCurrentWeather(coords) {\n var url = `${CORS_PROXY}${DARKSKY_API_URL}${DARKSKY_API_KEY}/${coords.lat},${coords.lng}`;\n \n return (\n fetch(url)\n .then(response => response.json())\n );\n }", "function getGeoWeather() {\n \tweather.getGeoWeather()\n\t\t.then((result...
[ "0.7311828", "0.7305341", "0.72278893", "0.71081465", "0.7086722", "0.7068075", "0.6992612", "0.69918483", "0.69859815", "0.69597024", "0.6949282", "0.6879366", "0.68698376", "0.6866419", "0.6844601", "0.68267536", "0.67979276", "0.678105", "0.6776304", "0.6736164", "0.673233...
0.0
-1
Get weather FORECAST by coordinates
getForecast(){ let url = 'https://api.openweathermap.org/data/2.5/forecast?lat='+this.state.latitude+'&lon='+this.state.longitude+'&appid=ce0cb4b99e8ee814c20a4f76609c8196'; fetch(url) .then(response => response.json()) .then(data => { console.log(data); // let tempData = JSON.stringify(data); // console.log(tempData); // alert(tempData); this.setState({ forecast: data }) }) .catch(function(error){ console.log(error.message); throw error.message; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getForecast(coordinates) {\n let apiKey = \"b3cdc73b2c038da1d3ef502745783d38\";\n let apiUrl = `https://api.openweathermap.org/data/2.5/onecall?lat=${coordinates.lat}&lon=${coordinates.lon}&appid=${apiKey}&units=metric`;\n axios.get(apiUrl).then(displayForecast);\n}", "function getForecast(coordinate...
[ "0.75168717", "0.75128335", "0.72365564", "0.7099691", "0.7045078", "0.69531584", "0.6861024", "0.68599325", "0.6843893", "0.6796756", "0.6777394", "0.6767804", "0.67374635", "0.6736526", "0.6697474", "0.66486144", "0.6647215", "0.6645098", "0.6644651", "0.66282535", "0.66250...
0.0
-1
all the stuff related to the website thing has been moved here, since the groups variable can't be accessed from the usescript
function insertScript() { window.urlfix_groupID = parseInt(document.URL.replace(/^.+id=/,'').replace('#', ''), 10); if (window.urlfix_groupID !== window.urlfix_groupID) { return; } var urlfix_local; var urlfix_local_name = "loadletter.urlfix.groups." + (window.urlfix_groupID % 20); if(typeof(window.urlfix_grouplist) !== "undefined") { window.urlfix_groupSite = window.urlfix_grouplist[String(window.urlfix_groupID)]; if(typeof(localStorage) !== "undefined") { localStorage.setItem(urlfix_local_name, JSON.stringify(window.urlfix_grouplist)); if (window.urlfix_groupSite !== undefined && localStorage.getItem('loadletter.urlfix.settings.redirect') && /^https?:\/\//.test(window.urlfix_groupSite)) { window.location.href = window.urlfix_groupSite; } } } else { if(typeof(localStorage) !== "undefined" && (urlfix_local = localStorage.getItem(urlfix_local_name))) { window.urlfix_groupSite = JSON.parse(urlfix_local)[window.urlfix_groupID]; if (window.urlfix_groupSite !== undefined && localStorage.getItem('loadletter.urlfix.settings.redirect') && /^https?:\/\//.test(window.urlfix_groupSite)) { window.location.href = window.urlfix_groupSite; } } else { window.urlfix_groupSite = undefined; } } window.urlfix_openSuggBox = function() { if(typeof(urlfix_grouplist_shard) === "undefined") alert("Could not fetch latest info, the website might be outdated, consider refreshing the page before submitting a new entry"); var suggboxurl = "http://mufix.herokuapp.com/form?group=" + urlfix_groupID; if(urlfix_groupSite !== "undefined") suggboxurl += "&update=yes"; window.open(suggboxurl, '', 'scrollbars=no,resizable=yes, width=700,height=200,status=no,location=no,toolbar=no'); }; var urlfix_site_fixed = document.getElementById('fixed_group_suggestion'); var urlfix_site = urlfix_site_fixed || document.createElement('div'); urlfix_site.setAttribute("class", "p-1 col-6 text"); urlfix_site.id = "fixed_group_suggestion"; urlfix_site.innerHTML = '<u>Site</u><a href="#" onclick="urlfix_openSuggBox();"> (Suggest an update)</a>'; var urlfix_site_par = document.querySelector('div.general_table:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(5)'); urlfix_site_par.parentNode.insertBefore(urlfix_site, urlfix_site_par); if(!urlfix_site_fixed) { var urlfix_irc_par = document.getElementById("fixed_irc_url").parentNode; urlfix_irc_par.parentNode.insertAfter(urlfix_site, urlfix_irc_par.nextSibling); } var site_link_fixed = document.getElementById('fixed_site_link'); var site_link = site_link_fixed || document.createElement('div'); site_link.setAttribute("class", "p-1 col-6 text"); site_link.id = "fixed_site_link"; site_link.innerHTML = (urlfix_groupSite === undefined ? '<i>No Info</i>' : ('<a target="_blank" alt="" href="' + urlfix_groupSite + '"><u>' + urlfix_groupSite + '</u></a>')); var site_link_par = document.querySelector('#fixed_group_suggestion'); site_link_par.parentNode.insertBefore(site_link, urlfix_site); if(!site_link_fixed) { var site_link_par = document.getElementById("fixed_site_link"); site_link_par.parentNode.insertBefore(site_link, urlfix_site_par.nextSibling); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get groups() {\r\n return new SiteGroups(this, \"groups\");\r\n }", "get groups() {\r\n return new SiteGroups(this, \"groups\");\r\n }", "function getData() {\n document.getElementById('widgetBody').innerHTML = 'Requesting groups...';\n var req = opensocial.newDataRequest();\n req....
[ "0.61649644", "0.61649644", "0.5908735", "0.58572036", "0.58505857", "0.5834616", "0.580372", "0.5789034", "0.5770481", "0.5768719", "0.5689002", "0.56848717", "0.5646661", "0.56433314", "0.5554216", "0.5547552", "0.55316323", "0.552117", "0.55132616", "0.54958326", "0.549522...
0.5796591
7
Adds StyleInfo to the Footer (Link to Github uvm)
function addStyleBy() { // check if can find footer element else exit this function var footer = document.getElementById('pageFooter'); if(footer === undefined || footer === null) return; var footerContent = footer.getElementsByClassName('footerContent')[0]; if(footerContent === undefined || footerContent === null) return; // Create own Element var styleInfo = document.createElement('div'); styleInfo.className = 'customStyleInfo'; styleInfo.innerHTML = '<p><a href="https://github.com/Petschko/AionDarkForumsStyle" target="_blank">' + 'Dark-AION-Style Fanart</a>' + ' by Peter Dragicevic <a href="mailto:peter@petschko.org">[E-Mail]</a>' + ' aka <a href="https://board.de.aion.gameforge.com/index.php/User/39379-Petschko/" data-user-id="39379"' + ' class="userLink">Petschko</a></p>'; // Add it =) footerContent.insertBefore(styleInfo, footerContent.firstChild); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Footer() {\n return (\n <footer className=\"footer fixed-bottom\">\n <span className=\"bg-info\">\n <a\n href=\"https://github.com/Karlelisa\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <i className=\"fab fa-github mr-2\"></i>Karlelis...
[ "0.62667", "0.6112618", "0.60512996", "0.6045475", "0.6011048", "0.58833", "0.5870987", "0.58429146", "0.5822146", "0.58212376", "0.5781214", "0.5706013", "0.5696709", "0.5685122", "0.5672404", "0.5655897", "0.56544733", "0.56410474", "0.5632018", "0.5631681", "0.56021553", ...
0.73439527
0
this function sends data through the socket and calls the callback function to process the returned data
function send(ws, request, callback) { if (ws.readyState != 1) { return; } //Listen to the "message" event to get server response ws.addEventListener("message", function(e) { try { var result = JSON.parse(e.data); //Check if the response is for the meta data request if (result.MGPMG == J1939_Data_Group) { //Stop listening we will no longer look for the meta data ws.removeEventListener("message", arguments.callee); //Invoke the callback with the result var_gotmetadataresponse(result); } else { //Invoke the callback with the result var_callbackgotresponse(result); } } catch (Exception) { console.log(Exception.message); } }); //Send the data to the server side application VCPA ws.send(JSON.stringify(request)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_sendData() {\n\n }", "processData(socket, data) {\n\n rideProcess.listen(socket, data);\n\n\n }", "send(data) {\n if (data === void 0 && typeof this.dataDelegate === 'function') {\n data = this.dataDelegate();\n }\n return this.handleSocketEvent('data', data);\n }", "senddata(e, ...
[ "0.68364906", "0.67869866", "0.6561809", "0.64393497", "0.63312376", "0.62792486", "0.6219473", "0.6149428", "0.6147211", "0.61326283", "0.61303514", "0.6126244", "0.6097526", "0.6096351", "0.6066239", "0.6050426", "0.6050426", "0.6050426", "0.6050426", "0.6050426", "0.605042...
0.56689215
92
this function requests the meta data for the group and sets the callback function for the returned data
function sendrequestformetadata () { request = {WGPMG:J1939_Data_Group}; send(ws, request, var_gotmetadataresponse); console.log("meta data requests sent"); /* TODO, turn off for development only*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getData() {\n document.getElementById('widgetBody').innerHTML = 'Requesting groups...';\n var req = opensocial.newDataRequest();\n req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER), 'viewer');\n req.add(socialsite.newFetchUsersGroupsRequest(opensocial.IdSpec.PersonId.VIEWER)...
[ "0.6282843", "0.6229271", "0.62145954", "0.58682233", "0.5817107", "0.58132404", "0.57127225", "0.56802684", "0.5638897", "0.56281275", "0.55455655", "0.5525992", "0.5518428", "0.55135524", "0.54976207", "0.546305", "0.54573476", "0.54362774", "0.5402604", "0.5395561", "0.538...
0.6117763
3
end of got parameter meta data function this function requests the runtime data for the group and sets the callback function for the returned data
function sendrequestparametervalues () { request = {WPUSHG:{WPUSHGID:"J1939_Data",Maxrate:50,Minrate:5000}}; send(ws, request, var_callbackgotresponse); console.log("group parameter push request sent");/* TODO, turn off for development only*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function click_group_callback(group_info){\n console.log('running user defined click group callback');\n console.log(group_info.type);\n console.log(group_info.nodes);\n console.log(group_info.info);\n }", "function _applyDataCallback(data) { // callback for getting gr...
[ "0.63773996", "0.6042921", "0.5967391", "0.58330745", "0.58151317", "0.5720611", "0.570237", "0.5694146", "0.5590193", "0.55463773", "0.5507466", "0.5488813", "0.54795694", "0.5383115", "0.53525084", "0.53222406", "0.5316669", "0.52833605", "0.52796346", "0.5277829", "0.52750...
0.498176
93
TODO add contact listener to watch for sensor overlaps
function AddTarget(targetEntity) { targets.push(targetEntity); var light = new LightComponent("TMP/Target/Light"); light.radius = 32; light.colour.set(1, 0, 0, 1); lights.push(light); targetEntity.GetRootComponent().Add(light); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "beaconsDidRange(data) {\n // An attempt to stop the ranging if it gets out of control\n if (this.numRanged > 20) {\n this.stopRanging();\n return;\n }\n this.numRanged += 1;\n console.log('Beacons!');\n\n /*\n Since I cannot actually range multiple regions at the same time,\n I am...
[ "0.6130723", "0.5754812", "0.5704348", "0.5546039", "0.5467679", "0.54587996", "0.5446974", "0.53609675", "0.534446", "0.53142726", "0.5256233", "0.5254748", "0.52484107", "0.52174896", "0.52041966", "0.5190096", "0.5153334", "0.5127921", "0.50774914", "0.5073799", "0.5068897...
0.0
-1
Write password to the password input
function writePassword() { var password = generatePassword(); var passwordText = document.querySelector("#password"); passwordText.value = password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writePassword() {}", "function writePassword() {\n var password = getPasswordOptions();\n var passwordText = document.querySelector('#password');\n \n passwordText.value = password;\n }", "function writePassword() {\n var password = generatePassword();\n var passwordText = document.qu...
[ "0.88605946", "0.85434437", "0.8511256", "0.8500835", "0.84896296", "0.84846", "0.84719414", "0.84686357", "0.8454292", "0.8443738", "0.8431387", "0.8419759", "0.8418786", "0.8406216", "0.8403772", "0.8400314", "0.8392802", "0.83758265", "0.8370068", "0.83642554", "0.836013",...
0.0
-1
To generate a random color, we need a function:
function generateRandomColor() { var r = Math.floor(Math.random() * 256); //a random number bet. 0 - 255 for red var g = Math.floor(Math.random() * 256); //a random number bet. 0 - 255 for green var b = Math.floor(Math.random() * 256); //a random number bet. 0 - 255 for blue return "rgb(" + r + ", " + g + ", " + b + ")" //return the string with all values inserted }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gencolor() {\n len = _COLOR.length;\n rand = Math.floor(Math.random()*len); \n return _COLOR[rand];\n }", "function generateColor() {\n var r = Math.floor(Math.random() * 256);\n var g = Math.floor(Math.random() * 256);\n var b = Math.floor(Math.random() * 256);\n return \"rgb(\" ...
[ "0.8800061", "0.86614347", "0.86592066", "0.8646707", "0.8616638", "0.8605243", "0.86004716", "0.8582748", "0.8526016", "0.85136396", "0.8511836", "0.85095483", "0.8509227", "0.84958845", "0.848888", "0.84770495", "0.84599155", "0.845528", "0.84549993", "0.8449176", "0.844837...
0.8204875
83
Save a file to the databse
function _saveFileToDb(file, collection) { var deferred = q.defer(); if (!file || Object.keys(file).length === 0) { deferred.resolve(); return deferred.promise; } // Open a new file var gridStore = new GridStore(collection.db, new ObjectID(), file.name, 'w', { content_type: file.type, metadata: { collection: collection.collectionName } }); // gridStore.open(function(err, gridStore) { gridStore.writeFile(file.path, function(err, doc) { if (err) { deferred.reject(err); } else { gridStore.close(function(err, result) { if (err) { deferred.reject(err); } else { deferred.resolve(doc); } }); } }); // }); return deferred.promise; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveDB (file) {\n\n\t// Get file contents\n var source = fs.readFileSync(file. source, 'utf8')\n var source = source.substr(1) // FIX ÿ issue\n\n // Save outputs\n file.output.forEach(function (output) {\n\n\t\t// Connect to database\n\t\tvar connection = new tedious.Connection({\n\t\t user...
[ "0.7520427", "0.68784624", "0.68025964", "0.6701301", "0.66133296", "0.652444", "0.6466137", "0.63373744", "0.6308039", "0.6301918", "0.62652206", "0.6250086", "0.6239255", "0.62194276", "0.6217184", "0.61932", "0.6154699", "0.61199456", "0.61083734", "0.60432273", "0.6035822...
0.6367133
7
Gulp task to minify HTML files
function pages() { return gulp.src(paths.pages.src) .pipe(htmlmin({ collapseWhitespace: true, removeComments: true })) .pipe(gulp.dest(paths.pages.dest)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function minifyHTML() {\n\treturn gulp\n\t\t.src(\"./src/*.html\")\n\t\t.pipe(\n\t\t\thtmlMin({\n\t\t\t\tcollapseWhitespace: true,\n\t\t\t\tremoveComments: true\n\t\t\t})\n\t\t)\n\t\t.pipe(gulp.dest(\"./build/\"));\n}", "function minifyHTML(cb) {\n gulp\n .src(\"./src/*.html\")\n .pipe(\n htmlReplace...
[ "0.80340624", "0.78716063", "0.76449406", "0.76232773", "0.7598291", "0.7592069", "0.74875367", "0.7304451", "0.7274629", "0.72013164", "0.71507466", "0.7117183", "0.7065026", "0.70542246", "0.70498824", "0.7043532", "0.69714206", "0.69673324", "0.6937451", "0.69250625", "0.6...
0.7147294
11
INGRESAR A LA PAGINA REGISTRAR
function myFunction() { window.open("registrar.html"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function regViajes(){\n window.location = config['url']+\"Administrador/modulo?vista=registrar_viaje\";\n}", "function regRutas(){\n window.location = config['url']+\"Administrador/modulo?vista=registrar_ruta\";\n}", "function registrar_esquema_comision(){\n\t\tenviarFormulario(\"#form_esquema_comision_regis...
[ "0.6035125", "0.6024741", "0.6019184", "0.59078926", "0.5903478", "0.5888881", "0.5873756", "0.5791817", "0.57531124", "0.5698205", "0.56954664", "0.5685141", "0.56684417", "0.5668099", "0.56480604", "0.56136143", "0.5609001", "0.56026244", "0.56016475", "0.5579359", "0.55788...
0.0
-1
Creates a `Ref` whose value is updated in an effect, ensuring the most recent value is the one rendered with. Generally only required for Concurrent mode usage where previous work in `render()` may be discarded befor being used. This is safe to access in an event handler.
function useCommittedRef(value) { var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value); Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () { ref.current = value; }, [value]); return ref; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function useLiveRef(value) {\n var ref = React.useRef(value);\n useIsomorphicEffect.useIsomorphicEffect(function () {\n ref.current = value;\n });\n return ref;\n}", "function useCommittedRef(value) {\n var ref = React.useRef(value);\n React.useEffect(function () {\n ref.current = value;\n }...
[ "0.679676", "0.646664", "0.64519995", "0.644341", "0.6370128", "0.6370128", "0.6368714", "0.6337584", "0.6337584", "0.6337584", "0.6337584", "0.6208308", "0.61539453", "0.614542", "0.614542", "0.6085862", "0.6085862", "0.6085862", "0.6085862", "0.6085862", "0.6085862", "0.6...
0.64727587
7
Returns a controller object for setting a timeout that is properly cleaned up once the component unmounts. New timeouts cancel and replace existing ones.
function useTimeout() { var isMounted = Object(_useMounted__WEBPACK_IMPORTED_MODULE_2__["default"])(); var handle = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(); var clear = function clear() { return clearTimeout(handle.current); }; Object(_useWillUnmount__WEBPACK_IMPORTED_MODULE_1__["default"])(clear); return { set: function set(fn, ms) { if (!isMounted()) return; clear(); handle.current = setTimeout(fn, ms); }, clear: clear }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function useTimeout () {\n let timer = null;\n const vm = vue.getCurrentInstance();\n\n function removeTimeout () {\n if (timer !== null) {\n clearTimeout(timer);\n timer = null;\n }\n }\n\n vue.onDeactivated(removeTimeout);\n vue.onBeforeUnmount(removeTimeout);\n\n ret...
[ "0.59614664", "0.56049776", "0.5577963", "0.5490032", "0.53819746", "0.53819746", "0.53819746", "0.53819746", "0.5364445", "0.52735806", "0.51561654", "0.5131061", "0.51134", "0.5094438", "0.5089148", "0.50206435", "0.50079304", "0.4987263", "0.49868378", "0.4974295", "0.4947...
0.5744796
1
Returns a ref that is immediately updated with the new value
function useUpdatedRef(value) { var valueRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value); valueRef.current = value; return valueRef; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Fay$$writeRef(ref,x){\n ref.value = x;\n}", "function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n }", "function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {...
[ "0.70653594", "0.6976267", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6848316", "0.6704408", ...
0.64319086
33
Attach a callback that fires when a component unmounts
function useWillUnmount(fn) { var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__["default"])(fn); Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () { return function () { return onUnmount.current(); }; }, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentWillUnmount() {\n Object.keys(this.eventCallbacks).forEach((key) => {\n const eventName = key.substring(2).toLowerCase();\n const handler = this.eventCallbacks[key];\n\n this.pathNavigator.off(eventName, handler);\n });\n\n this.pathNavigator.destroy();\n this.pathNavigator = nu...
[ "0.7067735", "0.69847584", "0.6972963", "0.6971532", "0.6901341", "0.6890963", "0.6863152", "0.68245286", "0.68245286", "0.6781138", "0.67569834", "0.6749727", "0.67342913", "0.6694535", "0.6588079", "0.65865713", "0.6565551", "0.65634656", "0.6562951", "0.6562951", "0.656192...
0.0
-1
Return the actively focused element safely.
function activeElement(doc) { if (doc === void 0) { doc = Object(_ownerDocument__WEBPACK_IMPORTED_MODULE_0__["default"])(); } // Support: IE 9 only // IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe> try { var active = doc.activeElement; // IE11 returns a seemingly empty object in some cases when accessing // document.activeElement from an <iframe> if (!active || !active.nodeName) return null; return active; } catch (e) { /* ie throws if no active element */ return doc.body; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function safeActiveElement(){try{return document.activeElement;}catch(err){}}", "function safeActiveElement(){try{return document.activeElement;}catch(err){}}", "function safeActiveElement(){try{return document.activeElement;}catch(err){}}", "function safeActiveElement(){try{return document.activeElement;}ca...
[ "0.82683074", "0.82683074", "0.82683074", "0.82683074", "0.82683074", "0.82683074", "0.82683074", "0.81972605", "0.8183395", "0.8183395", "0.8183395", "0.8183395", "0.8183395", "0.8183395", "0.8183395", "0.8183395", "0.8159494", "0.8159494", "0.8159494", "0.8159494", "0.81594...
0.0
-1
An `addEventListener` ponyfill, supports the `once` option
function addEventListener(node, eventName, handler, options) { if (options && typeof options !== 'boolean' && !onceSupported) { var once = options.once, capture = options.capture; var wrappedHandler = handler; if (!onceSupported && once) { wrappedHandler = handler.__once || function onceHandler(event) { this.removeEventListener(eventName, onceHandler, capture); handler.call(this, event); }; handler.__once = wrappedHandler; } node.addEventListener(eventName, wrappedHandler, optionsSupported ? options : capture); } node.addEventListener(eventName, handler, options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "registerOnce(event, listener){\n this._emiter.once(event, listener);\n }", "function _once (event, listener) {\n _on(event, function fn () {\n _removeListener(event, fn);\n listener.apply(this, arguments);\n });\n }", "function _once(event) {\n return function (listener) {\n...
[ "0.766718", "0.7317247", "0.7181291", "0.7037274", "0.68625027", "0.68581134", "0.6716545", "0.66270494", "0.65732384", "0.65732384", "0.6571339", "0.65677994", "0.65526253", "0.65526253", "0.64356035", "0.6344388", "0.6341649", "0.6340562", "0.6230385", "0.6203082", "0.61580...
0.654207
23
eslintdisable nobitwise, nocondassign HTML DOM and SVG DOM may have different support levels, so we need to check on context instead of a document root element.
function contains(context, node) { if (context.contains) return context.contains(node); if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function contains(context, node) {\n // HTML DOM and SVG DOM may have different support levels,\n // so we need to check on context instead of a document root element.\n if (context.contains) return context.contains(node);\n if (context.compareDocumentPosition) return context === node || !!(context.compareDocu...
[ "0.6395096", "0.61779875", "0.616896", "0.616896", "0.616896", "0.60411936", "0.60411936", "0.60411936", "0.6006154", "0.5975779", "0.59541875", "0.59468186", "0.5920531", "0.58963066", "0.5857537", "0.5785617", "0.57129294", "0.57129294", "0.57129294", "0.57129294", "0.57129...
0.5356849
70
The function whose prototype chain sequence wrappers inherit from.
function baseLodash() { // No operation performed. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get prototype() {}", "function FunctionWithPrototypeTest() {}", "function n(e,t){e.prototype.__proto__=t&&t.prototype,e.__proto__=t}", "function inheritFrom(subfn,superfn) {\n\tvar r = function () {}\n\tr.prototype = superfn.prototype;\n\tsubfn.prototype = new r();\n}", "function m(a){var b=function(){};re...
[ "0.6343211", "0.6206511", "0.58858025", "0.58346605", "0.5752401", "0.57297385", "0.57297385", "0.57187253", "0.57187253", "0.57187253", "0.57187253", "0.57187253", "0.5715384", "0.5715384", "0.5679559", "0.5679559", "0.5679559", "0.5679559", "0.5679559", "0.5679559", "0.5679...
0.0
-1
Removes all keyvalue entries from the hash.
function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clear() {\n var map = this._map;\n var keys = Object.keys(map);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n map[key].clear();\n }\n }", "function clear() {\n this.keys.forEach((key) => {\n this._store[key] = undefined;\n delete this._store[key];\n });\n}", ...
[ "0.67331547", "0.66229314", "0.65130246", "0.6456053", "0.62131137", "0.6201214", "0.6139392", "0.61100906", "0.6029288", "0.5966744", "0.59360605", "0.59072584", "0.59072584", "0.59072584", "0.59040016", "0.5900616", "0.5900616", "0.5900616", "0.58648694", "0.58648694", "0.5...
0.0
-1
Removes all keyvalue entries from the list cache.
function listCacheClear() { this.__data__ = []; this.size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listCacheClear(){this.__data__=[];}", "function listCacheClear(){this.__data__=[];}", "function listCacheClear(){this.__data__=[];}", "function listCacheClear(){this.__data__=[];}", "function listCacheClear() {\n\t\t this.__data__ = [];\n\t\t this.size = 0;\n\t\t}", "function listCacheClear() ...
[ "0.73564154", "0.73564154", "0.73564154", "0.73564154", "0.731635", "0.72632325", "0.72632325", "0.7261688", "0.7255278", "0.7255278", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.7234802", "0.72330546...
0.0
-1
Removes all keyvalue entries from the map.
function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clear() {\n var map = this._map;\n var keys = Object.keys(map);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n map[key].clear();\n }\n }", "clear() {\n log.map(\"Clearing the map of all the entries\");\n this._map.clear();\n }", "function multiMapRemo...
[ "0.7590112", "0.70694387", "0.6735414", "0.6652174", "0.6530006", "0.6267597", "0.62582785", "0.62582785", "0.62582785", "0.617115", "0.617115", "0.617115", "0.6166302", "0.61519635", "0.614778", "0.614778", "0.614778", "0.614778", "0.614778", "0.614778", "0.614778", "0.614...
0.0
-1
Removes all keyvalue entries from the stack.
function stackClear() { this.__data__ = new ListCache; this.size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clear () {\n this._dict = {}\n this._stack = [this._dict]\n }", "function stackClear(){this.__data__={'array':[],'map':null};}", "function stackClear(){this.__data__={'array':[],'map':null};}", "function stackClear(){this.__data__={'array':[],'map':null};}", "function stackClear() {\n\t this.__...
[ "0.6358899", "0.6331689", "0.6331689", "0.6331689", "0.62761325", "0.62298185", "0.62298185", "0.62298185", "0.62298185", "0.62298185", "0.62298185", "0.62298185", "0.6219535", "0.6219535", "0.6219535", "0.6219535", "0.6219535", "0.6219535", "0.6219535", "0.6219535", "0.62195...
0.0
-1
This method returns `undefined`.
function noop() { // No operation performed. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function returnUndefined() {}", "value() { return undefined; }", "function _undefined() {\n return exports.PREFIX.undefined;\n}", "function f () {\n return undefined;\n }", "_get(key) { return undefined; }", "get None() {}", "get None() {}", "get None() {}", "get None() {}", "_get_value() ...
[ "0.7349204", "0.67813563", "0.6498075", "0.6468386", "0.6265139", "0.6195519", "0.6195519", "0.6195519", "0.6195519", "0.5957684", "0.5942946", "0.5942946", "0.59360754", "0.5919196", "0.5828133", "0.5788914", "0.57824624", "0.5770755", "0.5736466", "0.5725097", "0.57073194",...
0.0
-1
Updates the position of the popper, computing the new offsets and applying the new style. Prefer `scheduleUpdate` over `update` because of performance reasons.
function update() { // if popper is destroyed, don't perform any further update if (this.state.isDestroyed) { return; } var data = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: false, offsets: {} }; // compute reference element offsets data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object, // modifiers will be able to edit `placement` if needed // and refer to originalPlacement to know the original value data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement` data.originalPlacement = data.placement; data.positionFixed = this.options.positionFixed; // compute the popper offsets data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback // the other ones will call `onUpdate` callback if (!this.state.isCreated) { this.state.isCreated = true; this.options.onCreate(data); } else { this.options.onUpdate(data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t // if popper is destroyed, don't perform any further update\n\t if (this.state.isDestroyed) {\n\t return;\n\t }\n\t\n\t var data = {\n\t instance: this,\n\t styles: {},\n\t arrowStyles: {},\n\t attributes: {},\n\t flipped: false,\n\t offsets: {}\n\t };\n\t\n\t // ...
[ "0.8123918", "0.80963385", "0.8092502", "0.8092502", "0.8092502", "0.8092502", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "0.80745625", "...
0.0
-1
Setup needed event listeners used to update the popper position
function setupEventListeners(reference, options, state, updateBound) { // Resize event listener on window state.updateBound = updateBound; getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); // Scroll event listener on scroll parents var scrollElement = getScrollParent(reference); attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); state.scrollElement = scrollElement; state.eventsEnabled = true; return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function g(e){if(Q.popperInstance?(y()||Q.popperInstance.scheduleUpdate(),Q.props.livePlacement&&!y()&&Q.popperInstance.enableEventListeners()):(Q.popperInstance=v(),Q.props.livePlacement||Q.popperInstance.disableEventListeners())\n/**\n * If the instance previously had followCursor behavior, it will be\n ...
[ "0.67695594", "0.6420096", "0.6403713", "0.6225101", "0.6185677", "0.6182807", "0.61679745", "0.61568534", "0.6139762", "0.6105795", "0.6095973", "0.607976", "0.6069184", "0.60660064", "0.60343856", "0.60328144", "0.60272366", "0.6027115", "0.6025439", "0.60178673", "0.601786...
0.0
-1
It will add resize/scroll events and start recalculating position of the popper element when they are triggered.
function enableEventListeners() { if (!this.state.eventsEnabled) { this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "adoptPositionOnResize() {\n if (this.adoptOnResize) {\n\n /**\n * Get app event manager\n * @type {ApplicationEventManager|{subscribe, eventList}}\n */\n const appEventManager = this.view.controller.root().eventManager;\n\n appEventManager.subscribe({\n event: {name: appE...
[ "0.6576682", "0.6569987", "0.6538165", "0.6458199", "0.64407223", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", "0.64272386", ...
0.0
-1
Remove event listeners used to update the popper position
function removeEventListeners(reference, state) { // Remove resize event listener on window getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents state.scrollParents.forEach(function (target) { target.removeEventListener('scroll', state.updateBound); }); // Reset state state.updateBound = null; state.scrollParents = []; state.scrollElement = null; state.eventsEnabled = false; return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_removeEvents () {\n this.container.classList.remove(\"tooltiped\");\n\n this.container.removeEventListener(\"mouseenter\", this._mouseOver);\n this.container.removeEventListener(\"mousemove\", this._mouseMove);\n this.container.removeEventListener(\"mouseleave\", this._mouseOut);\n ...
[ "0.6902162", "0.6785765", "0.6785765", "0.6785765", "0.6770545", "0.6743059", "0.6592434", "0.6507296", "0.6457278", "0.6452451", "0.6450113", "0.64127916", "0.63347775", "0.629248", "0.62742007", "0.62729037", "0.6259061", "0.62421805", "0.6237802", "0.62315637", "0.62195307...
0.0
-1
It will remove resize/scroll events and won't recalculate popper position when they are triggered. It also won't trigger `onUpdate` callback anymore, unless you call `update` method manually.
function disableEventListeners() { if (this.state.eventsEnabled) { cancelAnimationFrame(this.scheduleUpdate); this.state = removeEventListeners(this.reference, this.state); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update(){ // if popper is destroyed, don't perform any further update\nif(this.state.isDestroyed){return;}var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}}; // compute reference element offsets\ndata.offsets.reference = getReferenceOffsets(this.state,this.popper,this...
[ "0.7491116", "0.73395157", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", "0.7308568", ...
0.0
-1
Copyright 2013present, Facebook, Inc. All rights reserved. This source code is licensed under the BSDstyle license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. Mostly taken from ReactPropTypes.
function createChainableTypeChecker(validate) { function checkType(isRequired, props, propName, componentName, location, propFullName) { var componentNameSafe = componentName || '<<anonymous>>'; var propFullNameSafe = propFullName || propName; if (props[propName] == null) { if (isRequired) { return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.')); } return null; } for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) { args[_key - 6] = arguments[_key]; } return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args)); } var chainedCheckType = checkType.bind(null, false); chainedCheckType.isRequired = checkType.bind(null, true); return chainedCheckType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static get propTypes() {\n return {\n config: React.PropTypes.object,\n test: React.PropTypes.string,\n };\n }", "function isReactPropTypes(path) {\n return (\n (path.node.object.type === 'MemberExpression' &&\n path.node.object.object &&\n path.node.object.object.name ==...
[ "0.69596386", "0.6747215", "0.6628715", "0.64641684", "0.6229404", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.62062454", "0.6093034", "0.6093034", "0.6093034", "0.6093034", "0.6093034", "0.6...
0.0
-1
inlined Object.is polyfill to avoid requiring consumers ship their own /eslintdisable noselfcompare
function is(x, y) { // SameValue algorithm if (x === y) { // Steps 1-5, 7-10 // Steps 6.b-6.e: +0 != -0 return x !== 0 || 1 / x === 1 / y; } else { // Step 6.a: NaN == NaN return x !== x && y !== y; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isObject$1(obj) {\n // incase of arrow function and array\n return Object(obj) === obj && String(obj) === '[object Object]' && !isFunction(obj) && !isArray(obj);\n }", "function isObject$1(obj) {\n ...
[ "0.6732014", "0.66343844", "0.6610363", "0.6600483", "0.6599981", "0.65655863", "0.65070015", "0.64682496", "0.64631367", "0.6412267", "0.6370893", "0.6365788", "0.6365788", "0.6365788", "0.6365788", "0.6357561", "0.63279057", "0.63222736", "0.6322131", "0.62962186", "0.62962...
0.0
-1
Equivalent of `typeof` but with special handling for array and regexp.
function getPropType(propValue) { var propType = typeof propValue; if (Array.isArray(propValue)) { return 'array'; } if (propValue instanceof RegExp) { // Old webkits (at least until Android 4.0) return 'function' rather than // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ // passes PropTypes.object. return 'object'; } if (isSymbol(propType, propValue)) { return 'symbol'; } return propType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sc_typeof( x ) {\n return typeof x;\n}", "static type(arg)\n {\n const types = [\n 'array', 'boolean', 'function', 'number',\n 'null', 'object', 'regexp', 'symbol', 'string',\n 'undefined'\n ]\n\n var type = Object.prototype.toString.call(arg),\...
[ "0.6911626", "0.67766434", "0.66100645", "0.654038", "0.6495285", "0.6489846", "0.6489846", "0.64507556", "0.64507556", "0.6431194", "0.64299774", "0.64064825", "0.64064825", "0.63977975", "0.63977975", "0.63977975", "0.63977975", "0.63977975", "0.63977975", "0.63977975", "0....
0.0
-1
This handles more types than `getPropType`. Only used for error messages. See `createPrimitiveTypeChecker`.
function getPreciseType(propValue) { if (typeof propValue === 'undefined' || propValue === null) { return '' + propValue; } var propType = getPropType(propValue); if (propType === 'object') { if (propValue instanceof Date) { return 'date'; } else if (propValue instanceof RegExp) { return 'regexp'; } } return propType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPropType(propValue) {\n\t\t var propType = typeof propValue;\n\t\t if (Array.isArray(propValue)) {\n\t\t return 'array';\n\t\t }\n\t\t if (propValue instanceof RegExp) {\n\t\t // Old webkits (at least until Android 4.0) return 'function' rather than\n\t\t // 'object' for type...
[ "0.6875299", "0.6851843", "0.6851843", "0.6851843", "0.6851843", "0.6850808", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "0.6845137", "...
0.0
-1
Returns a string that is postfixed to a warning about an invalid type. For example, "undefined" or "of type array"
function getPostfixForTypeWarning(value) { var type = getPreciseType(value); switch (type) { case 'array': case 'object': return 'an ' + type; case 'boolean': case 'date': case 'regexp': return 'a ' + type; default: return type; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _undefinedCoerce() {\n return '';\n}", "function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case \"array\":\n case \"object\":\n return \"an \" + type;\n case \"boolean\":\n ...
[ "0.65988296", "0.6565237", "0.6559532", "0.6559532", "0.6559532", "0.6559532", "0.6522337", "0.65215486", "0.65060395", "0.65060395", "0.65060395", "0.65060395", "0.65060395", "0.65013695", "0.6489755", "0.6477735", "0.6477735", "0.6477735", "0.6477735", "0.6477735", "0.64777...
0.0
-1
Returns class name of the object, if any.
function getClassName(propValue) { if (!propValue.constructor || !propValue.constructor.name) { return ANONYMOUS; } return propValue.constructor.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getClassName(obj) {\n var funcNameRegex = /function\\s+(.+?)\\s*\\(/;\n var results = funcNameRegex.exec(obj['constructor'].toString());\n return (results && results.length > 1) ? results[1] : '';\n }", "getClassName() {\n return this.constructor\n .className;\n...
[ "0.77305555", "0.74700296", "0.74700296", "0.7425214", "0.7164314", "0.7145376", "0.7083378", "0.70803404", "0.69950473", "0.69701296", "0.69010824", "0.6882226", "0.67130005", "0.66569114", "0.66385615", "0.6611098", "0.6611098", "0.6611098", "0.6611098", "0.6600444", "0.659...
0.0
-1
Iterates through children that are typically specified as `props.children`, but only maps over children that are "valid elements". The mapFunction provided index will be normalised to the components mapped, so an invalid component would not increase the index.
function map(children, func) { var index = 0; return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (child) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child) ? func(child, index++) : child; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function map(children, func) {\n var index = 0;\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.map(children, function (child) {\n return __WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child) ? func(child, index++) : child;\n });\n}", "function map(children, func) {\n var ind...
[ "0.8085546", "0.8085546", "0.8000892", "0.79522616", "0.78987634", "0.6855412", "0.6855412", "0.6821118", "0.6821118", "0.6821118", "0.6821118", "0.6821118", "0.6821118", "0.6821118", "0.6821118", "0.6807006", "0.6803972", "0.68027747", "0.6395794", "0.6358235", "0.6332384", ...
0.8055414
8
Iterates through children that are "valid elements". The provided forEachFunc(child, index) will be called for each leaf child with the index reflecting the position relative to "valid components".
function forEach(children, func) { var index = 0; react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.forEach(children, function (child) { if (react__WEBPACK_IMPORTED_MODULE_0___default.a.isValidElement(child)) func(child, index++); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function forEach(children, func) {\n let index = 0;\n React.Children.forEach(children, child => {\n if ( /*#__PURE__*/React.isValidElement(child)) func(child, index++);\n });\n}", "function forEach(children, func) {\n var index = 0;\n __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(childre...
[ "0.7550318", "0.7548583", "0.7548583", "0.75359917", "0.7463881", "0.6174013", "0.6146973", "0.60240287", "0.6023056", "0.5969525", "0.58591896", "0.58516526", "0.5780683", "0.5707618", "0.56763846", "0.55314374", "0.550636", "0.54614955", "0.5441422", "0.5391313", "0.5369416...
0.75053763
10
Validate that children, if any, are instances of ``.
function onlyProgressBar(props, propName, componentName) { var children = props[propName]; if (!children) { return null; } var error = null; react__WEBPACK_IMPORTED_MODULE_3___default.a.Children.forEach(children, function (child) { if (error) { return; } /** * Compare types in a way that works with libraries that patch and proxy * components like react-hot-loader. * * see https://github.com/gaearon/react-hot-loader#checking-element-types */ var element = react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ProgressBar, null); if (child.type === element.type) return; var childIdentifier = react__WEBPACK_IMPORTED_MODULE_3___default.a.isValidElement(child) ? child.type.displayName || child.type.name || child.type : child; error = new Error("Children of " + componentName + " can contain only ProgressBar " + ("components. Found " + childIdentifier + ".")); }); return error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "childrenValidation() {\n const isChildren = Array.isArray(this.props.children);\n if (isChildren) {\n throw new Error('<Hello> component doen not support multiple children');\n } else if (!this.props.children) {\n throw new Error('<Hello> component cannot ben empty');\n }\n }", "hasValidCh...
[ "0.70827156", "0.66168594", "0.6391978", "0.6061812", "0.6061812", "0.6061812", "0.6061812", "0.6061812", "0.6061812", "0.6042826", "0.5988897", "0.5979626", "0.5979601", "0.59598196", "0.5883729", "0.5859255", "0.58247167", "0.5810185", "0.57794297", "0.57668746", "0.5766874...
0.0
-1
reading a dimension prop will cause the browser to recalculate, which will let our animations work
function triggerBrowserReflow(node) { node.offsetHeight; // eslint-disable-line no-unused-expressions }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get dimensions() { return this._dimensions; }", "function GetDimension()\n{\n\treturn m_dimension;\n}", "getDim() {\n var width, height;\n\n // If the particle only has a set size (not width/height)\n if (this.size) {\n width = this.size;\n height = this.size;\n } else {\n width = th...
[ "0.66955936", "0.66803426", "0.6676448", "0.6507731", "0.64845675", "0.64663607", "0.6316262", "0.6300066", "0.62989414", "0.62900716", "0.6270145", "0.61885655", "0.61716473", "0.61571586", "0.61492896", "0.60992944", "0.6073279", "0.6054781", "0.60546273", "0.59849644", "0....
0.0
-1
Copyright (c) 2013present, Facebook, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
function componentWillMount() { // Call this.constructor.gDSFP to support sub-classes. var state = this.constructor.getDerivedStateFromProps(this.props, this.state); if (state !== null && state !== undefined) { this.setState(state); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n // if this is the first time the home screen is loading\n // we must initialize Facebook\n if (!window.FB) {\n window.fbAsyncInit = function() {\n window.FB.init({\n appId : '280945375708713',\n cookie : true, // enable cookies to allow the s...
[ "0.58224547", "0.5634772", "0.5554353", "0.5488407", "0.5398338", "0.5384954", "0.53624374", "0.5326901", "0.5321201", "0.5315479", "0.5315479", "0.529241", "0.5265917", "0.52158153", "0.5197934", "0.519152", "0.5190714", "0.51557094", "0.5140475", "0.51301724", "0.5124701", ...
0.0
-1
Call this.constructor.gDSFP to support subclasses. Use the setState() updater to ensure state isn't stale in certain edge cases.
function updater(prevState) { var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); return state !== null && state !== undefined ? state : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function componentWillMount(){// Call this.constructor.gDSFP to support sub-classes.\nvar state=this.constructor.getDerivedStateFromProps(this.props,this.state);if(state!==null&&state!==undefined){this.setState(state);}}", "function componentWillMount() {\n // Call this.constructor.gDSFP to support sub-...
[ "0.6140107", "0.56869465", "0.55798596", "0.55445963", "0.55445963", "0.55445963", "0.543585", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", "0.53732324", ...
0.0
-1
`Dropdown` is set of structural components for building, accessible dropdown menus with closeonclick, keyboard navigation, and correct focus handling. As with all the reactoverlay's components its BYOS (bring your own styles). Dropdown is primarily built from three base components, you should compose to build your Dropdowns. `Dropdown`, which wraps the menu and toggle, and handles keyboard navigation `Dropdown.Toggle` generally a button that triggers the menu opening `Dropdown.Menu` The overlaid, menu, positioned to the toggle with PopperJs
function Dropdown(_ref) { var drop = _ref.drop, alignEnd = _ref.alignEnd, defaultShow = _ref.defaultShow, rawShow = _ref.show, rawOnToggle = _ref.onToggle, itemSelector = _ref.itemSelector, focusFirstItemOnShow = _ref.focusFirstItemOnShow, children = _ref.children; var forceUpdate = Object(_restart_hooks_useForceUpdate__WEBPACK_IMPORTED_MODULE_7__["default"])(); var _useUncontrolled = Object(uncontrollable__WEBPACK_IMPORTED_MODULE_4__["useUncontrolled"])({ defaultShow: defaultShow, show: rawShow, onToggle: rawOnToggle }, { show: 'onToggle' }), show = _useUncontrolled.show, onToggle = _useUncontrolled.onToggle; var _useCallbackRef = Object(_restart_hooks_useCallbackRef__WEBPACK_IMPORTED_MODULE_6__["default"])(), toggleElement = _useCallbackRef[0], setToggle = _useCallbackRef[1]; // We use normal refs instead of useCallbackRef in order to populate the // the value as quickly as possible, otherwise the effect to focus the element // may run before the state value is set var menuRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(); var menuElement = menuRef.current; var setMenu = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (ref) { menuRef.current = ref; // ensure that a menu set triggers an update for consumers forceUpdate(); }, [forceUpdate]); var lastShow = Object(_restart_hooks_usePrevious__WEBPACK_IMPORTED_MODULE_5__["default"])(show); var lastSourceEvent = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null); var focusInDropdown = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(false); var toggle = Object(react__WEBPACK_IMPORTED_MODULE_2__["useCallback"])(function (event) { onToggle(!show, event); }, [onToggle, show]); var context = Object(react__WEBPACK_IMPORTED_MODULE_2__["useMemo"])(function () { return { toggle: toggle, drop: drop, show: show, alignEnd: alignEnd, menuElement: menuElement, toggleElement: toggleElement, setMenu: setMenu, setToggle: setToggle }; }, [toggle, drop, show, alignEnd, menuElement, toggleElement, setMenu, setToggle]); if (menuElement && lastShow && !show) { focusInDropdown.current = menuElement.contains(document.activeElement); } var focusToggle = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function () { if (toggleElement && toggleElement.focus) { toggleElement.focus(); } }); var maybeFocusFirst = Object(_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_8__["default"])(function () { var type = lastSourceEvent.current; var focusType = focusFirstItemOnShow; if (focusType == null) { focusType = menuRef.current && Object(dom_helpers_matches__WEBPACK_IMPORTED_MODULE_0__["default"])(menuRef.current, '[role=menu]') ? 'keyboard' : false; } if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) { return; } var first = Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(menuRef.current, itemSelector)[0]; if (first && first.focus) first.focus(); }); Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () { if (show) maybeFocusFirst();else if (focusInDropdown.current) { focusInDropdown.current = false; focusToggle(); } // only `show` should be changing }, [show, focusInDropdown, focusToggle, maybeFocusFirst]); Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () { lastSourceEvent.current = null; }); var getNextFocusedChild = function getNextFocusedChild(current, offset) { if (!menuRef.current) return null; var items = Object(dom_helpers_querySelectorAll__WEBPACK_IMPORTED_MODULE_1__["default"])(menuRef.current, itemSelector); var index = items.indexOf(current) + offset; index = Math.max(0, Math.min(index, items.length)); return items[index]; }; var handleKeyDown = function handleKeyDown(event) { var key = event.key, target = event.target; // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400 // in inscrutability var isInput = /input|textarea/i.test(target.tagName); if (isInput && (key === ' ' || key !== 'Escape' && menuRef.current && menuRef.current.contains(target))) { return; } lastSourceEvent.current = event.type; switch (key) { case 'ArrowUp': { var next = getNextFocusedChild(target, -1); if (next && next.focus) next.focus(); event.preventDefault(); return; } case 'ArrowDown': event.preventDefault(); if (!show) { toggle(event); } else { var _next = getNextFocusedChild(target, 1); if (_next && _next.focus) _next.focus(); } return; case 'Escape': case 'Tab': onToggle(false, event); break; default: } }; return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_DropdownContext__WEBPACK_IMPORTED_MODULE_9__["default"].Provider, { value: context }, children({ props: { onKeyDown: handleKeyDown } })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DropdownMenu(props) {\n var children = props.children,\n className = props.className,\n content = props.content,\n direction = props.direction,\n open = props.open,\n scrolling = props.scrolling;\n var classes = __WEBPACK_IMPORTED_MODULE_1_classnames___default()(direction, Objec...
[ "0.7379139", "0.73551315", "0.7344111", "0.7344111", "0.731457", "0.7248382", "0.7141513", "0.7104771", "0.7096492", "0.70610046", "0.70362496", "0.7033354", "0.7033354", "0.6974389", "0.6948965", "0.6941215", "0.68353075", "0.68135256", "0.67828226", "0.67828226", "0.6773039...
0.7876001
1
Wires up Dropdown toggle functinality, returning a set a props to attach to the element that functions as the dropdown toggle (generally a button).
function useDropdownToggle() { var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_1__["useContext"])(_DropdownContext__WEBPACK_IMPORTED_MODULE_2__["default"]), show = _useContext.show, toggle = _useContext.toggle, setToggle = _useContext.setToggle; return [{ ref: setToggle, 'aria-haspopup': true, 'aria-expanded': !!show }, { show: show, toggle: toggle }]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function useDropdownToggle() {\n var _ref = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useContext\"])(_DropdownContext__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) || {},\n _ref$show = _ref.show,\n show = _ref$show === void 0 ? false : _ref$show,\n _ref$toggle = _ref.toggle,\n toggle = _ref$tog...
[ "0.6736121", "0.6736121", "0.6667571", "0.6605897", "0.6605897", "0.6524257", "0.62852407", "0.62826455", "0.61889184", "0.60012704", "0.5964195", "0.5922878", "0.5922878", "0.5890954", "0.5890954", "0.58881706", "0.58881706", "0.58873236", "0.58767843", "0.586028", "0.581652...
0.68878376
1
Copyright (c) 2013present, Facebook, Inc. All rights reserved. This source code is licensed under the BSDstyle license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.
function canAcceptRef(component) { return !!component && (typeof component !== 'function' || component.prototype && component.prototype.isReactComponent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n // if this is the first time the home screen is loading\n // we must initialize Facebook\n if (!window.FB) {\n window.fbAsyncInit = function() {\n window.FB.init({\n appId : '280945375708713',\n cookie : true, // enable cookies to allow the s...
[ "0.56065136", "0.5405664", "0.5363121", "0.53545314", "0.5333756", "0.52918416", "0.52918416", "0.5231541", "0.5192295", "0.5186469", "0.51845247", "0.5152402", "0.51356876", "0.51134974", "0.5095628", "0.508052", "0.50637424", "0.5059554", "0.5037927", "0.50063604", "0.49586...
0.0
-1
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at <
function getSourcesToAdd(newSources, prevSources) { const sourcesToAdd = []; for (const sourceId in newSources) { const newSource = newSources[sourceId]; const prevSource = prevSources ? prevSources[sourceId] : null; if (!prevSource) { sourcesToAdd.push(newSource); } } return sourcesToAdd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isMozilla()\n{\n return __isMozilla;\n}", "private public function m246() {}", "function getLicenseInfo() {\n\n\tvar l = \"\";\n\t\n\tl += \"Copyright 2014 DesignaQuark: Josiah Neuberger\\n\\n\";\n\t\n\tl += \"Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n\";\n\tl += \"yo...
[ "0.58180535", "0.56505257", "0.56285423", "0.5499288", "0.5365306", "0.53091156", "0.5292245", "0.5286848", "0.5254318", "0.5231024", "0.5191593", "0.5187924", "0.5179798", "0.5179223", "0.5169264", "0.5163725", "0.50980157", "0.5085011", "0.50795054", "0.5067128", "0.5064512...
0.0
-1
Filters for the users choice
function filterUser(value) { const filterIndex = select.selectedIndex let filter = select.options[select.selectedIndex].text if (value.length >= 3) { filteredUsers = users.filter((user) => { if (user[filter].toLowerCase().includes(value.toLowerCase())) { return user[filter] } }) createCards(filteredUsers) } else if (value.length === 0) { createCards(users) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filterUser(value) {\n switch (value) {\n case Constants.UserManagementDDLOptions[1]:\n GetAllUsersFromDB();\n break;\n case Constants.UserManagementDDLOptions[2]:\n GetActivatedUserList();\n ...
[ "0.72708374", "0.679569", "0.6711983", "0.6538668", "0.649803", "0.64871246", "0.64749736", "0.6357838", "0.63390577", "0.6314583", "0.627644", "0.6237066", "0.6229025", "0.61880636", "0.61710256", "0.61697626", "0.6146438", "0.61458665", "0.61189294", "0.6091811", "0.6090958...
0.72810113
0
Function prompts user to "play again" or "exit"
function restartGame() { inquirer .prompt([ { type: "list", message: "Would you like to:", choices: ["play Again", "Exit"], name: "restart" } ]).then(function(input) { if (input.restart === "Play Again") { requireNewWord = true; incorrectLetters = []; correctLetters = []; guessesLeft = 10; Logic(); } else { return; }; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function playAgain() {\n\tconsole.log(\"\\n\");\n\t inquirer.prompt([\n {\n type: \"input\",\n name: \"replay\",\n message: \"Press Y to play again.\"\n }\n ]).then(function(user) {\n if (user.replay === \"Y\" || user.replay === \"y\") {\n console.log(\"\\n\");\n ...
[ "0.79594797", "0.79189867", "0.786819", "0.78066903", "0.7636405", "0.7623988", "0.7620459", "0.7602651", "0.7574997", "0.75451267", "0.75446683", "0.75369734", "0.7519188", "0.7461331", "0.7451478", "0.74284625", "0.74138236", "0.73955005", "0.7372211", "0.7343224", "0.72716...
0.7369985
19
var rot = getDegreeElementById(squarel);
function getDegreeElementById(squarel) { var element = document.getElementById('squarel'); var style = window.getComputedStyle(element, null); // получаем значение стилей var valueStyle = style.getPropertyValue("-webkit-transform") || style.getPropertyValue("-moz-transform") || style.getPropertyValue("-ms-transform") || style.getPropertyValue("-o-transform") || style.getPropertyValue("transform"); // если стилей нет, то угол 0 градусов if (valueStyle == 'none') return 0; // разбираем полученное значение console.log(valueStyle); var values = valueStyle.split('(')[1]; values = values.split(')')[0]; values = values.split(','); // получаем синус и косинус var cos = values[0]; var sin = values[1]; // вычисляем угол var degree = Math.round(Math.asin(sin) * (180 / Math.PI)); if (cos < 0) { addDegree = 90 - Math.round(Math.asin(sin) * (180 / Math.PI)); degree = 90 + addDegree; } if (degree < 0) { degree = 360 + degree; } return degree; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rotateDeg(wise){\n\tvar outer = document.getElementById('inner'),\n inner = document.getElementById('mainPhoto'),\n rotator = setRotator(inner);\n\n\tif(wise == 'clock'){\n\t\tdegrees += 90;\n\t} else{\n\t\tdegrees -= 90;\n\t}\n\n\n if (degrees >= 360) {\n degrees = 0;\n }\n\n rotato...
[ "0.6531213", "0.63352966", "0.6269987", "0.6139909", "0.61005616", "0.608561", "0.6082949", "0.60627574", "0.60535675", "0.6043049", "0.5984824", "0.59722203", "0.5964407", "0.5905762", "0.5875156", "0.58679813", "0.5867697", "0.586679", "0.58649486", "0.585485", "0.5847462",...
0.82226104
0
Setup the controls for the pattern.
setup() { let controls = new Array(); const configs = Object.entries(this.config); for (const [key, val] of configs) { // Create a new object var control = new Object(); // Create the div that contains the control control.div = createDiv('<label>' + val.name + '</label>') .parent('pattern-controls') .addClass('pattern-control'); // Create the control form input // TODO: make this dynamic if (val.input.type == "createSlider") { control.input = createSlider(val.input.params[0], val.input.params[1], val.input.params[2], val.input.params[3]) .attribute('name', key) .parent(control.div) .addClass(val.input.class); } else if (val.input.type == "createInput") { control.input = createInput(val.input.params[0], val.input.params[1], val.input.params[2]) .attribute("type", "checkbox") .attribute('name', key) .attribute('checkbox', null) .parent(control.div); } // Create a span element to display the current input's value (useful for Sliders) if (val.input.displayValue) { let radius_value = createSpan('0') .parent(control.div); } // Add to "controls" object controls.push(control); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setup() {\n\n let controls = new Array();\n const configs = Object.entries(this.config);\n for (const [key, val] of configs) {\n\n // Create a new object\n var control = new Object();\n\n // Create the div that contains the control\n control.div = createDiv('<label>' + val.name + '</la...
[ "0.75623053", "0.7555665", "0.67570114", "0.65871274", "0.6323224", "0.62981796", "0.62330675", "0.62066203", "0.61610925", "0.6141603", "0.61076725", "0.606262", "0.60418755", "0.59576195", "0.5947139", "0.5919705", "0.59176594", "0.590105", "0.5894467", "0.5860595", "0.5853...
0.75315315
2
Calculate coordinates for the shape
calc(width, height) { return [ [- width/2, - height/2], [+ width/2, - height/2], [+ width/2, + height/2], [- width/2, + height/2], [- width/2, - height/2], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function calculate_coordinates () {\n\t }", "function calcCoords()\n\t{\n\t\tvar w = that.w + (2*that.borderWidth);\n\t\tvar h = that.h + (2*that.borderWidth)\n\t\tvar scaledW = w * that.scale;\n\t\tvar scaledH = h * that.scale;\n\n\t\timgOfsX = (w - scaledW) / 2 - that.borderWidth;\n\t\timgOfsY = (h - scaledH) ...
[ "0.7274469", "0.6812751", "0.6751969", "0.66120523", "0.6410327", "0.6382542", "0.63555765", "0.6305978", "0.62642634", "0.62516546", "0.61549354", "0.611807", "0.6109921", "0.6076881", "0.60690624", "0.6058487", "0.6041296", "0.60084426", "0.59546566", "0.59307975", "0.59127...
0.0
-1
TextPrinting Functions fullprint() subfunctions
function itemprint(t){ debugger; var newtext = $("<p style=display:none>") // var statusvar = current.effects[0].status var effectcheck = window[(current.effects[0].status)] // var currenteffect = caction.effectvar // if(effectcheck === undefined){}; if(effectcheck === false || effectcheck === undefined){ newtext .text(current[t] + current.item[0].idesc + current.effects[0].efalse) .appendTo(".textarea") .fadeIn(3000) }; if(effectcheck === true){ newtext .text(current[t] + current.item[0].idesc + current.effects[0].etrue) .appendTo(".textarea") .fadeIn(3000) }; $(".textarea").animate({scrollTop: 9000}, 3000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Printer() {}", "printText () {\n\n push();\n\n translate ( this.xCoord, this.yCoord );\n\n fill ( 250, 250, 250 );\n noStroke();\n\n triangle( 0, - this.size / 3, this.size / 5, -this.size / 2, - this.size / 5, -this.size / 2 );\n ellipse ( 0, - 2 * (this.size / 3), this.si...
[ "0.63175", "0.6246347", "0.6025263", "0.60107887", "0.5987723", "0.5979508", "0.5948329", "0.59461385", "0.5937812", "0.58994466", "0.589928", "0.5895789", "0.58854145", "0.5880057", "0.58797413", "0.5879089", "0.58689505", "0.58559984", "0.58554757", "0.58554757", "0.5840294...
0.0
-1
import text from '../Components/NavBar/NavBar'
function SearchPost(props) { const [query, setquery] = useState(""); const [searchData, setsearchData] = useState([]); let searchText = props.text; console.log(searchText); useEffect(() => { console.log("Search text is:"); console.log(searchText); setquery(searchText); // setquery(searchText) axios .get( `https://api.themoviedb.org/3/search/movie?api_key=${API_KEY}&language=en-US&page=1&include_adult=false&query=${query}` ) .then((response) => { console.log(response.data.results); setsearchData(response.data.results); console.log("Search Data added"); }); }, [searchText, query]); return ( <div className="search-pg"> {/* <h1>aslam</h1> */} {/* <div className="search-items"> */} {searchData ? searchData.map((obj) => { return ( <div className="search-data"> {obj.backdrop_path ? <img className="search-img" alt='' src={`${imageUrl + obj.backdrop_path}`} /> : ""} {obj.backdrop_path ? <h1>{obj.title}</h1> :""} </div> ); }) : "" } {/* </div> */} </div> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NavBar () {\n\n return ( \n <nav className=\"navigation-items\">\n <div>\n <h1 id=\"header\">Forager's Recipe Book</h1>\n </div>\n <Link to=\"/home\"><h2>Home🏡</h2></Link>\n <Link to=\"/addform\"><h3>Add to the Collection!</h3></Link>\n ...
[ "0.60016286", "0.5992738", "0.5876756", "0.58545536", "0.58315605", "0.5805902", "0.5783826", "0.5719754", "0.57111454", "0.5708862", "0.57006115", "0.56975836", "0.56817025", "0.5674338", "0.5645316", "0.5639765", "0.5635738", "0.56320596", "0.56301475", "0.5628671", "0.5625...
0.0
-1
keep only a n decimals in geojson coordinates
function simplifyGeojson(geo, n){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coord1(value) {\n\t return value\n\t .replace(removeSpace, \"\")\n\t .split(\",\")\n\t .map(parseFloat)\n\t .filter((num) => !isNaN(num))\n\t .slice(0, 3);\n\t}", "function normalizeLng( value ) {\n const rotation = Math.floor( ( value + 180 ) / 360 );\n c...
[ "0.61190784", "0.5901839", "0.58294755", "0.5709085", "0.5706951", "0.5681709", "0.5644305", "0.55318093", "0.55226123", "0.5419712", "0.5400155", "0.53726745", "0.53726745", "0.5368304", "0.5363918", "0.5339507", "0.5334838", "0.53333217", "0.5324105", "0.5297405", "0.528224...
0.6902684
0
Generate the query for specific method
_getQuery(method, data, params) { let query; switch (method) { case 'find': query = this._getQueryGeocode(data, params); break; case 'reverseGeocode': query = this._getQueryReverse(data, params); break; case 'suggest': query = this._getQuerySuggest(data, params); break; case 'findAddressCandidates': query = this._getQueryFindAddressCandidates(data, params); break; case 'geocodeAddresses': query = this._getQueryGeocodeAddresses(data, params); break; } query.f = params.f || 'json'; query = Object.assign(params, query); return query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CustomQuery() {\n\n}", "async function queryDynamicDb( layer, method, props ){\n let obj = ''; let event = ''; let field = '';\n if (layer.host=='bniaApi'){obj=new BniaSearch(layer); }\n if (layer.host=='arcgis') {obj=new EsriSearch(layer); }\n if (layer.host=='socrata'){obj=new SocrataSearch(layer)...
[ "0.65071005", "0.6415638", "0.6402205", "0.6333182", "0.6295627", "0.62335473", "0.6158737", "0.6100864", "0.60952926", "0.6053628", "0.6033982", "0.60304505", "0.6028751", "0.6028751", "0.6028751", "0.60283583", "0.60283583", "0.60283583", "0.60277146", "0.5974114", "0.59583...
0.71529335
0
Prepare the query for find
_getQueryGeocode(data, params) { return { text: data, outFields: params.outFields || '*', maxLocations: params.maxLocations || 10, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "filter() {\n //remove fields for pagination, sroting and limiting in req.query, which go in the options\n //object for mongo query, not the filter object\n //if dont remove then mongo will look for properties with this name\n const queryObj = { ...this.queryObj }; //create copy do remov...
[ "0.6076091", "0.59264517", "0.575014", "0.57341474", "0.56510586", "0.5605092", "0.55765665", "0.55681676", "0.55582017", "0.5527328", "0.55120987", "0.54685515", "0.5451874", "0.54471487", "0.5432536", "0.54304093", "0.54070646", "0.5389868", "0.538801", "0.5377464", "0.5372...
0.0
-1
Prepare the query for reverse
_getQueryReverse(data, params) { if (!this.validateLngLat(data)) return { error: 'LatLng wrong!' }; return { location: data, maxLocations: params.maxLocations || 10, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reQuery() {\n\n // Update our different OData strings\n updateFilterString();\n updateSortString();\n\n // Refresh the visual collection, resulting in the table refreshing\n properties.visualCollection.refresh();\n\n }", "set_reverse() {\n// ...
[ "0.54322124", "0.5333439", "0.5277387", "0.49393195", "0.49111557", "0.49012184", "0.48943093", "0.48925242", "0.48386696", "0.4820743", "0.47995287", "0.47959837", "0.47924823", "0.4784193", "0.47670645", "0.47590303", "0.4754102", "0.47426054", "0.4716576", "0.46996203", "0...
0.50404364
3
Prepare the query for suggest
_getQuerySuggest(data, params) { return { text: data, outFields: params.outFields || '*', maxSuggestions: params.maxSuggestions || 10, }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "searchSuggest(query) {\r\n let finalQuery;\r\n if (typeof query === \"string\") {\r\n finalQuery = { querytext: query };\r\n }\r\n else {\r\n finalQuery = query;\r\n }\r\n return this.create(SearchSuggest).execute(finalQuery);\r\n }", "function i...
[ "0.6536917", "0.59518266", "0.5936315", "0.59145284", "0.59036714", "0.5865288", "0.58625966", "0.5832799", "0.580762", "0.5793396", "0.57455236", "0.5742793", "0.5720012", "0.5669403", "0.5638431", "0.5627923", "0.5602946", "0.55935067", "0.5590696", "0.5549595", "0.55457467...
0.6718893
0
Prepare the query for findAddressCandidates
_getQueryFindAddressCandidates(data) { if (isString(data)) return { SingleLine: data }; if (isObject(data)) return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_getQueryGeocodeAddresses(data) {\n const records = [];\n data.forEach((address, index) => {\n if (isString(address)) {\n records.push({\n attributes: {\n OBJECTID: index,\n SingleLine: address,\n },\n });\n } else {\n // allow user to sp...
[ "0.58243704", "0.57239884", "0.5703757", "0.54517096", "0.53788304", "0.534403", "0.5332851", "0.53037864", "0.53025126", "0.52685165", "0.52350086", "0.52340424", "0.52103925", "0.5157994", "0.5131981", "0.51285034", "0.51061934", "0.5088926", "0.5086893", "0.50531393", "0.5...
0.6143717
0
Prepare the query for geocodeAddresses
_getQueryGeocodeAddresses(data) { const records = []; data.forEach((address, index) => { if (isString(address)) { records.push({ attributes: { OBJECTID: index, SingleLine: address, }, }); } else { // allow user to specify their own OBJECTIDs if (!address.OBJECTID) { address.OBJECTID = index; } records.push({ attributes: address, }); } }); return { addresses: { records } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fillInAddressSource() {\n var coords = sourceQuery.getPlace().geometry.location;\n lat = coords.lat();\n lon = coords.lng();\n}", "_getQueryGeocode(data, params) {\n return {\n text: data,\n outFields: params.outFields || '*',\n maxLocations: params.maxLocations || 10,\n };\n }"...
[ "0.6659336", "0.650398", "0.60950613", "0.60516804", "0.6016699", "0.6010526", "0.6007574", "0.5975601", "0.59680796", "0.58689475", "0.5868109", "0.58561164", "0.58160007", "0.5812755", "0.5785749", "0.5750603", "0.5721056", "0.5718395", "0.56995296", "0.56814253", "0.566315...
0.71950936
0
Call the API w/out authentication
_run(method, data, params) { return new Promise((resolve, reject) => { const query = this._getQuery(method, data, params); if (query.error) reject(query.error); this._execute(this.endpoint, method, query) .then(resolve) .catch(reject); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "logout() {\n this.setMethod('POST');\n this.setAuth();\n return this.getApiResult(Config.LOGOUT_API);\n }", "deauthenticate(): void {}", "logOut() {\n authContextApi.logOut();\n }", "logout() {\n // Remove the token and remove Authorization header from Api Service as well\n ...
[ "0.6804563", "0.6710653", "0.65464973", "0.6431421", "0.6417217", "0.64037424", "0.63146496", "0.62573713", "0.61760205", "0.60571766", "0.6004231", "0.60010195", "0.5996265", "0.5982949", "0.5977147", "0.597031", "0.59473026", "0.59459317", "0.5926696", "0.592069", "0.591049...
0.0
-1