query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
pg. 872 : "If we then normalize the scores and repeat k times the process will converge"
private boolean convergence(List<Page> pages) { double aveHubDelta = 100; double aveAuthDelta = 100; if (pages == null) { return true; } // get current values from pages double[] currHubVals = new double[pages.size()]; double[] currAuthVals = new double[pages.size()]; for (int i = 0; i < pages.size(); i++) { Page currPage = pages.get(i); currHubVals[i] = currPage.hub; currHubVals[i] = currPage.authority; } if (prevHubVals == null || prevAuthVals == null) { prevHubVals = currHubVals; prevAuthVals = currAuthVals; return false; } // compare to past values aveHubDelta = getAveDelta(currHubVals, prevHubVals); aveAuthDelta = getAveDelta(currAuthVals, prevAuthVals); if (aveHubDelta + aveAuthDelta < DELTA_TOLERANCE || (Math.abs(prevAveHubDelta - aveHubDelta) < 0.01 && Math.abs(prevAveAuthDelta - aveAuthDelta) < 0.01)) { return true; } else { prevHubVals = currHubVals; prevAuthVals = currAuthVals; prevAveHubDelta = aveHubDelta; prevAveAuthDelta = aveAuthDelta; return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }", "private static void runAll() throws InterruptedException {\r\n\t\tSystem.out.println(RankEvaluat...
[ "0.62225026", "0.6026785", "0.58101755", "0.579233", "0.5788909", "0.5784515", "0.57049996", "0.56948453", "0.56916964", "0.56843805", "0.5661735", "0.5657526", "0.56532264", "0.5622327", "0.55669487", "0.5563056", "0.5558342", "0.555665", "0.553551", "0.5533695", "0.55243045...
0.0
-1
Determine how much values in a list are changing. Useful for detecting convergence of data values.
public double getAveDelta(double[] curr, double[] prev) { double aveDelta = 0; assert (curr.length == prev.length); for (int j = 0; j < curr.length; j++) { aveDelta += Math.abs(curr[j] - prev[j]); } aveDelta /= curr.length; return aveDelta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getChanged () {\n int d = getDiff () * 2;\n int s = getSize () * 2;\n\n for (int i = 0; i < references.length; i++) {\n if (references[i] != null) {\n d += references[i].getDiff ();\n s += references[i].getSize ();\n ...
[ "0.62487435", "0.55201507", "0.5518594", "0.5471348", "0.54398644", "0.54368585", "0.5415743", "0.5399658", "0.53885674", "0.53703123", "0.53592044", "0.53477573", "0.53453475", "0.53285223", "0.53115946", "0.52847767", "0.5262324", "0.52515316", "0.523595", "0.5226385", "0.5...
0.0
-1
Return from a set of Pages the Page with the greatest Hub value
public Page getMaxHub(List<Page> result) { Page maxHub = null; for (Page currPage : result) { if (maxHub == null || currPage.hub > maxHub.hub) maxHub = currPage; } return maxHub; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Album getAlbumWithMostTracks()\r\n {\r\n\t// Initialise variables to store max track count and album with the most \r\n\t// tracks\r\n\tint maxTrackCount = 0;\r\n\tAlbum maxTrackAlbum = null;\r\n\r\n\t// Create Iterator to iterate over the album collection\r\n\t// Netbeans warns 'use of iterator for simpl...
[ "0.5404516", "0.52651376", "0.52594167", "0.525014", "0.52370155", "0.52352417", "0.5218154", "0.5199563", "0.51250124", "0.51197046", "0.5111402", "0.51027095", "0.5060654", "0.50400335", "0.5034061", "0.5031519", "0.5019915", "0.5009256", "0.5008773", "0.49940217", "0.49824...
0.73783934
0
Return from a set of Pages the Page with the greatest Authority value
public Page getMaxAuthority(List<Page> result) { Page maxAuthority = null; for (Page currPage : result) { if (maxAuthority == null || currPage.authority > maxAuthority.authority) maxAuthority = currPage; } return maxAuthority; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getGenreDownloadedMostByUser(int profileAccountId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query query = session.createQuery(\"SELECT m...
[ "0.49765536", "0.49695158", "0.4959375", "0.4909228", "0.489135", "0.47644952", "0.47401568", "0.47254455", "0.47134325", "0.4663827", "0.46610275", "0.464504", "0.46361732", "0.46245176", "0.4622371", "0.4597477", "0.45934567", "0.45929152", "0.458695", "0.45749125", "0.4566...
0.7167735
0
Organize the list of pages according to their descending Hub scores.
public void sortHub(List<Page> result) { Collections.sort(result, new Comparator<Page>() { public int compare(Page p1, Page p2) { // Sorts by 'TimeStarted' property return p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2); } // If 'TimeStarted' property is equal sorts by 'TimeEnded' property public int secondaryOrderSort(Page p1, Page p2) { return p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1 : p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Page> normalize(List<Page> pages) {\n\t\tdouble hubTotal = 0;\n\t\tdouble authTotal = 0;\n\t\tfor (Page p : pages) {\n\t\t\t// Sum Hub scores over all pages\n\t\t\thubTotal += Math.pow(p.hub, 2);\n\t\t\t// Sum Authority scores over all pages\n\t\t\tauthTotal += Math.pow(p.authority, 2);\n\t\t}\n\t\t// ...
[ "0.60747874", "0.60422707", "0.5947372", "0.58777696", "0.57888126", "0.57003796", "0.5691459", "0.5636785", "0.56043565", "0.55418974", "0.5502585", "0.54989773", "0.54170465", "0.540134", "0.53996074", "0.5356888", "0.5354962", "0.53371775", "0.5329301", "0.52989894", "0.52...
0.5932073
3
Sorts by 'TimeStarted' property
public int compare(Page p1, Page p2) { return p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "public long getSortTime(){ \n return endTime - startTime;\n }", "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n ...
[ "0.71990544", "0.69180787", "0.6899925", "0.6818451", "0.6457486", "0.6427237", "0.63983643", "0.63283145", "0.6315511", "0.6290683", "0.6125058", "0.6122243", "0.6092077", "0.60294205", "0.5833757", "0.5794416", "0.5793885", "0.5785558", "0.57808423", "0.56512886", "0.558803...
0.0
-1
If 'TimeStarted' property is equal sorts by 'TimeEnded' property
public int secondaryOrderSort(Page p1, Page p2) { return p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1 : p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n Collections.sort(events);\n }", "public long getSortTime(){ \n return endTime - startTime;\n }", "public static void sortEvents(){\n if(events.size()>0){\n ...
[ "0.6694357", "0.66612476", "0.6291751", "0.59298056", "0.58945274", "0.5891976", "0.58677155", "0.58254486", "0.5794877", "0.57768446", "0.5767092", "0.5760854", "0.56985486", "0.5683411", "0.5642523", "0.56283975", "0.56255466", "0.5597049", "0.5596312", "0.5588556", "0.5571...
0.0
-1
Organize the list of pages according to their descending Authority Scores
public void sortAuthority(List<Page> result) { Collections.sort(result, new Comparator<Page>() { public int compare(Page p1, Page p2) { // Sorts by 'TimeStarted' property return p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2); } // If 'TimeStarted' property is equal sorts by 'TimeEnded' property public int secondaryOrderSort(Page p1, Page p2) { return p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1 : p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator rankOrdering(Iterator pages)\n\t{\n\t\t//Iterator allWebNode = ind.retrievePages(keyword);\n\t\tIterator allWebNode = pages;\n\t\tif(allWebNode.hasNext()){\n\t\t\tWebNode wb = (WebNode) allWebNode.next();\n\t\t\tint score = wb.getInDegree() * wb.getWordFreq(keyword);\n\t\t\twb.keywordScore = score;...
[ "0.60220444", "0.5955384", "0.5823338", "0.5820613", "0.57607377", "0.5634144", "0.56180865", "0.5612765", "0.5563659", "0.55631685", "0.5514011", "0.54646254", "0.5433303", "0.5362336", "0.5348588", "0.5287188", "0.52834743", "0.5215997", "0.5200048", "0.51904273", "0.517619...
0.5605898
8
Sorts by 'TimeStarted' property
public int compare(Page p1, Page p2) { return p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "public long getSortTime(){ \n return endTime - startTime;\n }", "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n ...
[ "0.71990544", "0.69180787", "0.6899925", "0.6818451", "0.6457486", "0.6427237", "0.63983643", "0.63283145", "0.6315511", "0.6290683", "0.6125058", "0.6122243", "0.6092077", "0.60294205", "0.5833757", "0.5794416", "0.5793885", "0.5785558", "0.57808423", "0.56512886", "0.558803...
0.0
-1
If 'TimeStarted' property is equal sorts by 'TimeEnded' property
public int secondaryOrderSort(Page p1, Page p2) { return p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1 : p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n Collections.sort(events);\n }", "public long getSortTime(){ \n return endTime - startTime;\n }", "public static void sortEvents(){\n if(events.size()>0){\n ...
[ "0.6694357", "0.66612476", "0.6291751", "0.59298056", "0.58945274", "0.5891976", "0.58677155", "0.58254486", "0.5794877", "0.57768446", "0.5767092", "0.5760854", "0.56985486", "0.5683411", "0.5642523", "0.56283975", "0.56255466", "0.5597049", "0.5596312", "0.5588556", "0.5571...
0.0
-1
Simple console display of HITS Algorithm results.
public void report(List<Page> result) { // Print Pages out ranked by highest authority sortAuthority(result); System.out.println("AUTHORITY RANKINGS : "); for (Page currP : result) System.out.printf(currP.getLocation() + ": " + "%.5f" + '\n', currP.authority); System.out.println(); // Print Pages out ranked by highest hub sortHub(result); System.out.println("HUB RANKINGS : "); for (Page currP : result) System.out.printf(currP.getLocation() + ": " + "%.5f" + '\n', currP.hub); System.out.println(); // Print Max Authority System.out.println("Page with highest Authority score: " + getMaxAuthority(result).getLocation()); // Print Max Authority System.out.println("Page with highest Hub score: " + getMaxAuthority(result).getLocation()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayResults() {\r\n Preferences.debug(\" ******* FitMultiExponential ********* \\n\\n\", Preferences.DEBUG_ALGORITHM);\r\n dumpTestResults();\r\n }", "public void showHeuristics() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SI...
[ "0.67749256", "0.64157164", "0.63754493", "0.6307042", "0.63034075", "0.62488633", "0.6224291", "0.6198375", "0.61668724", "0.6159503", "0.6096727", "0.60546637", "0.60462", "0.604507", "0.6022353", "0.60036576", "0.59892726", "0.59444743", "0.5941304", "0.59335285", "0.59249...
0.0
-1
TODO Autogenerated method stub
public void update(TheatreMashup todo) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
here are implemented all the methods that the server can call remotely to the client This method is called by the server to check connection
public void ping() throws RemoteException{ return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean isConnected();", "private boolean isConnected() {\n\t\treturn (this.serverConnection!=null); \n }", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"pi...
[ "0.69835293", "0.692086", "0.68837035", "0.6843786", "0.68413323", "0.6802004", "0.67832476", "0.67329776", "0.67329776", "0.6696942", "0.6696942", "0.6696942", "0.6696942", "0.6696942", "0.6696942", "0.6696942", "0.6696942", "0.6695805", "0.6695805", "0.6695805", "0.6695805"...
0.0
-1
Updates the view of the connected players
public void updateConnectedPlayers(ArrayList<Player> connectedPlayers) throws RemoteException{ match.setPlayers(connectedPlayers); for (int i=0;i<match.getPlayers().size();i++){ System.out.println("[LOBBY]: Player "+ match.getPlayers().get(i).getNickname()+ " is in lobby"); } System.out.println("[LOBBY]: Refreshing Lobby.."); Platform.runLater(() -> firstPage.refreshPlayersInLobby());// Update on JavaFX Application Thread }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayPlayers() {\n\t\tfor (Player p: game.getPlayers()) {\n\t\t\tview.updateDisplay(p.getId(), p.getDeck().getNumberOfCards());\n\t\t}\n\t}", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "public void update() {\n\t\t//Indicate that data is fetched\n\t\...
[ "0.74531734", "0.72903705", "0.70533", "0.70111305", "0.70060056", "0.69831795", "0.6920378", "0.6842198", "0.6818179", "0.6711089", "0.6692111", "0.6620196", "0.6618237", "0.6435448", "0.6414977", "0.64026064", "0.63928425", "0.6374145", "0.6367156", "0.63645107", "0.6347121...
0.744819
1
The server calls automatically this method when a client can pay a cost with a powerUp
public void askForPowerUpAsAmmo() { mainPage.setRemoteController(senderRemoteController); mainPage.setMatch(match); if (!mainPage.isPowerUpAsAmmoActive()) { //check if there is a PowerUpAsAmmo already active Platform.runLater( () -> { try { mainPage.askForPowerUpAsAmmo(); } catch (Exception e) { e.printStackTrace(); } } ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void autoPay() {}", "@Override\n\tpublic void powerUp(int PowerId) {\n\n\t}", "@Override\r\n public void pay() {\n }", "public boolean canRequestPower();", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n...
[ "0.6603676", "0.6424966", "0.62275606", "0.6205994", "0.6205522", "0.61816776", "0.6132819", "0.60813993", "0.6033265", "0.6015114", "0.60053825", "0.5940226", "0.5939105", "0.59356976", "0.5901522", "0.5887198", "0.5886524", "0.5873834", "0.58639705", "0.5848684", "0.5836537...
0.0
-1
Gets the nickname linked to this controller
public String getNickname() throws RemoteException{ return this.nickname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNickname() {\n return nickname;\n }", "public String getNickname() {\n return nickname;\n }", "public String getNickname() {\n return nickname;\n }", "public String getNickname() {\n return nickname;\n }", "public String getNickname() {\n ...
[ "0.79540616", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7899854", "0.7874473", "0.785798", "0.7692572", "0.7640243", "0.7606042", "0.7531716", "0.75094074", "0.7495869", "0.7494988", "0.749198", "...
0.72045
28
This method is called when the match is started, the client has to see the MainPage
public void startGame(){ System.out.println("[SERVER]: Starting a new game"); mainPage = new MainPage(); mainPage.setMatch(match); mainPage.setRemoteController(senderRemoteController); Platform.runLater( () -> { try { firstPage.closePrimaryStage(); if(chooseMap != null) chooseMap.closePrimaryStage(); mainPage.start(new Stage()); } catch (Exception e) { e.printStackTrace(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "public MainPage...
[ "0.6728287", "0.6728287", "0.65852684", "0.6553018", "0.63649017", "0.627354", "0.62520266", "0.6251093", "0.6236759", "0.6230823", "0.6218976", "0.61824363", "0.61763644", "0.61596555", "0.61365736", "0.6104722", "0.61007434", "0.60919213", "0.6088983", "0.60769296", "0.6072...
0.72468054
0
Updates the values in the client copy of the match object
public void updateMatch(Match match){ setMatch(match); Platform.runLater( () -> { firstPage.setMatch(match); firstPage.refreshPlayersInLobby(); }); if(mainPage != null) { Platform.runLater( () -> { mainPage.setMatch(match); senderRemoteController.setMatch(match); this.match = match; mainPage.refreshPlayersPosition(); mainPage.refreshPoints(); if(match.getPlayer(senderRemoteController.getNickname()).getStatus().getSpecialAbility().equals(AbilityStatus.FRENZY)){ mainPage.setFrenzyMode(true); mainPage.frenzyButtonBoosted(); System.out.println("[FRENZY]: Started FINAL FRENZY"); System.out.println("[FRENZY]: Current Player: "+match.getCurrentPlayer().getNickname()+ " in status "+match.getCurrentPlayer().getStatus().getTurnStatus()); } if (match.getPlayer(senderRemoteController.getNickname()).getStatus().getSpecialAbility().equals(AbilityStatus.FRENZY_LOWER)){ mainPage.setFrenzyMode(true); mainPage.frenzyButtonLower(); } }); } //questo metodo viene chiamato piu volte. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateMatches(){\n getContext().getContentResolver().delete(MatchesContract.BASE_CONTENT_URI, null, null);\n\n // Fetch new data\n new FetchScoreTask(getContext()).execute();\n }", "@Override\n\tpublic void updateMatch(AdrenalinaMatch toGetUpdateFrom) {\n\t\tJSONObject messag...
[ "0.63217974", "0.6116491", "0.6093341", "0.60359234", "0.58102447", "0.57826036", "0.57733935", "0.57029194", "0.56942934", "0.5627386", "0.5577913", "0.5574394", "0.5526116", "0.55162746", "0.5383062", "0.5356969", "0.535104", "0.535104", "0.535104", "0.534656", "0.534592", ...
0.60511196
3
Used to ask the map to the MASTER player (opens the chooseMap window)
public void askMap() throws Exception{ // Platform.runLater( () -> firstPage.closePrimaryStage()); chooseMap = new ChooseMap(); chooseMap.setRemoteController(senderRemoteController); Platform.runLater( () -> { // Update UI here. try { chooseMap.start(new Stage()); }catch (Exception e){ e.printStackTrace(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }", "void willChooseGameMap() throws RemoteException;", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationDat...
[ "0.6669147", "0.6532998", "0.6399329", "0.6272505", "0.6249688", "0.62111104", "0.60159826", "0.5989861", "0.59883875", "0.59658027", "0.59371483", "0.59332657", "0.58801174", "0.5872402", "0.58713263", "0.58685106", "0.58231646", "0.577671", "0.5770919", "0.5766066", "0.5758...
0.6960917
0
This method is called by the server on the client when he has to spawn or respawn
public void askSpawn() throws RemoteException{ respawnPopUp = new RespawnPopUp(); respawnPopUp.setSenderRemoteController(senderRemoteController); respawnPopUp.setMatch(match); Platform.runLater( ()-> { try{ respawnPopUp.start(new Stage()); } catch(Exception e){ e.printStackTrace(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void respawn() {\n\t\tbounds.x = OmniWorld.SpawnX;\n\t\tbounds.y = OmniWorld.SpawnY;\n\t\tHP = MaxHP;\n\t\tisDead = false;\n\t\tstateTime = 0;\n\t}", "public final void respawn() {\r\n World.submit(new Pulse(getRespawnRate()) {\r\n\r\n @Override\r\n pu...
[ "0.6706469", "0.6677018", "0.66253126", "0.6592394", "0.6376733", "0.6297081", "0.62392604", "0.6224227", "0.61719865", "0.61574316", "0.61529213", "0.6148702", "0.61370856", "0.6113643", "0.611105", "0.6045944", "0.6025552", "0.6000212", "0.5986277", "0.59824187", "0.5954846...
0.60710233
15
Asks to use the tagback grenade
@Override public void askForTagBackGrenade() throws RemoteException { mainPage.setRemoteController(senderRemoteController); mainPage.setMatch(match); Platform.runLater( () -> { try { mainPage.askForTagBackPopup(); } catch (Exception e) { e.printStackTrace(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void askOxygen(){\n _brain.lungs.breath();\n _brain.heart.accelerate(1);\n }", "@Override\n public void onRedBagTip(RewardResult arg0) {\n\n }", "public void handleBuyEggCommand(){\n if(Aquarium.money >= EGGPRICE) {\n Aquarium.money -= EGGPRICE;\...
[ "0.5824643", "0.53433955", "0.5268929", "0.52553385", "0.5181295", "0.5134795", "0.51144886", "0.51125455", "0.5098377", "0.5049892", "0.50476116", "0.49928555", "0.498612", "0.49760073", "0.49710828", "0.49641833", "0.49427745", "0.49397945", "0.49249005", "0.4914353", "0.49...
0.6038444
0
Asks the client to use the targeting scope
@Override public void askForTargetingScope() throws RemoteException { mainPage.setRemoteController(senderRemoteController); mainPage.setMatch(match); Platform.runLater( () -> { try { mainPage.askForTargetingScope(); } catch (Exception e) { e.printStackTrace(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setScopeRelevant(boolean scopeRelevant);", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(String scope) {\n this.scope = scope;\n }", "public void setScope(Scope sco...
[ "0.60618865", "0.58181965", "0.58181965", "0.58181965", "0.58161116", "0.58161116", "0.58161116", "0.57032293", "0.5563643", "0.55276626", "0.5376275", "0.53487307", "0.5239869", "0.523871", "0.5237317", "0.51841915", "0.51841915", "0.51812077", "0.5161368", "0.5145436", "0.5...
0.6550418
0
During the final moments of the game, called to popUp the ranking of the match
public void createRanking() throws RemoteException{ mainPage.setRemoteController(senderRemoteController); mainPage.setMatch(match); Platform.runLater( () -> { try { mainPage.createRanking(); } catch (Exception e) { e.printStackTrace(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showRanking(String winner, String rank);", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "public void rankMat...
[ "0.7361101", "0.6914728", "0.6877294", "0.6689919", "0.65610415", "0.653506", "0.6523009", "0.63862956", "0.63566965", "0.6345505", "0.6233483", "0.6207941", "0.61976653", "0.61813974", "0.6133486", "0.61257446", "0.61239296", "0.61097616", "0.6098905", "0.60979176", "0.60934...
0.61911076
13
Compiles classes in given source. The resulting .class files are added to an internal list which can be later retrieved by getClassFiles().
public boolean compile(String source) { return compile(source, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getClassesToCompile();", "private Path compileTestClass(\n String packageName, String classname, String classSource, Path destinationDir)\n throws FileCompiler.FileCompilerException {\n // TODO: The use of FileCompiler is temporary. Should be replaced by use of SequenceCompiler,\n ...
[ "0.63847995", "0.635453", "0.6010189", "0.5953491", "0.5820217", "0.5797035", "0.569459", "0.55566984", "0.5522308", "0.5455462", "0.5430017", "0.54156154", "0.53269994", "0.5325674", "0.52267855", "0.5215708", "0.5212559", "0.51886773", "0.51804507", "0.5158696", "0.5117591"...
0.56236154
7
Compiles classes in given source. The resulting .class files are added to an internal list which can be later retrieved by getClassFiles()
public boolean compile(String source, boolean generate) { CompilerOptions options = getDefaultCompilerOptions(); ICompilerRequestor requestor = this; IErrorHandlingPolicy policy = DefaultErrorHandlingPolicies.exitAfterAllProblems(); IProblemFactory problemFactory = new DefaultProblemFactory(Locale.getDefault()); Source[] units = new Source[1]; units[0] = new Source(source); units[0].setName(); options.generateClassFiles = generate; org.eclipse.jdt.internal.compiler.Compiler compiler = new org.eclipse.jdt.internal.compiler.Compiler( new CompilerAdapterEnvironment(environment, units[0]), policy, options, requestor, problemFactory); compiler.compile(units); return getResult().hasErrors(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getClassesToCompile();", "private Path compileTestClass(\n String packageName, String classname, String classSource, Path destinationDir)\n throws FileCompiler.FileCompilerException {\n // TODO: The use of FileCompiler is temporary. Should be replaced by use of SequenceCompiler,\n ...
[ "0.651338", "0.6404101", "0.6011751", "0.5985865", "0.5822418", "0.5804859", "0.5797301", "0.5637885", "0.56294477", "0.55969054", "0.5562478", "0.5523369", "0.54432374", "0.53531593", "0.5326347", "0.531074", "0.52504665", "0.5242884", "0.5240526", "0.5217571", "0.513345", ...
0.5418134
13
Same as compile(String), for compatibility with old interface
public boolean compile(String name, String source) { return compile(source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void compile();", "public String compile () throws IOException, RhinoEvaluatorException {\n return compile(1, null);\n }", "public boolean compile(String source) {\n\t return compile(source, true);\n\t}", "public void compile(String str) throws PaleoException {\n\t\trunProcess(\"...
[ "0.689332", "0.68328243", "0.6705063", "0.64135206", "0.63529116", "0.6272056", "0.6148588", "0.6141952", "0.5985903", "0.5888724", "0.5771149", "0.572308", "0.56816494", "0.5595201", "0.55835336", "0.5519125", "0.54874575", "0.5473049", "0.54704946", "0.53830487", "0.5378086...
0.6541228
3
Returns a list of JavaClassFiles that contains results of the compilation.
public ClassFile[] getClassFiles() { return getResult().getClassFiles(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getClassesToCompile();", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn ...
[ "0.73677695", "0.72260654", "0.6937138", "0.6440683", "0.64101696", "0.6336952", "0.62327325", "0.62143844", "0.6143613", "0.61327165", "0.60719943", "0.6025785", "0.59797865", "0.59516513", "0.5904629", "0.5900357", "0.5874373", "0.5839229", "0.58131194", "0.57844263", "0.57...
0.7576886
0
TODO Autogenerated method stub
@Override public boolean onDoubleTap(MotionEvent e) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onAnimationStart(Animation animation) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onAnimationRepeat(Animation animation) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
nothing to do here
@Override public void onScaleEnd(ScaleGestureDetector detector) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr()...
[ "0.63796103", "0.6334971", "0.63205105", "0.6302668", "0.62852556", "0.6225275", "0.6146525", "0.6146525", "0.6144452", "0.60714036", "0.6044127", "0.6036487", "0.6034698", "0.6028312", "0.6009376", "0.60046643", "0.6002409", "0.59945714", "0.5979857", "0.59783345", "0.597756...
0.0
-1
TODO Why don't you parametrised thi methods ?? Fixed, I made the method universal as it should have been
@Test public void metalAndColorsTest() { JdiSite.homePage.openNewPageByHeaderMenu(HeaderMenuItem.METALS_AND_COLORS); JdiSite.metalAndColorsPage.checkOpened(); // !TODO - I decided to remove the method from MetalAndColorsForm and make it easier JdiSite.metalAndColorsPage.fillAndSubmitMetalAndColorsForm(DefaultsData.DEFAULT_DATA); JdiSite.metalAndColorsPage.checkResults(DefaultsData.DEFAULT_DATA); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\n public...
[ "0.6175759", "0.60644144", "0.59955287", "0.59006625", "0.59006625", "0.5831797", "0.5831797", "0.5794214", "0.5783962", "0.5759522", "0.5759066", "0.57497257", "0.57150066", "0.5687344", "0.5683565", "0.565533", "0.5653317", "0.5627319", "0.5624136", "0.5621835", "0.5593238"...
0.0
-1
where the data lives
public RLDiskDrive() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getCurrentData();", "public void getData() {\n\t\tfileIO.importRewards();\n\t\tfileIO.getPrefs();\n\t}", "protected void loadData()\n {\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "private void InitData() {\n\t}", "...
[ "0.6960824", "0.6798826", "0.6558848", "0.6518472", "0.6374701", "0.63228935", "0.63021004", "0.6292341", "0.62843335", "0.62623954", "0.62576944", "0.6251995", "0.6248592", "0.6236112", "0.6223183", "0.6190672", "0.6172567", "0.6170143", "0.61183697", "0.61183697", "0.607068...
0.0
-1
Creates a new instance of AbstractServlet
public AbstractServlet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseServlet() {\r\n\t\tsuper();\r\n\t}", "public HttpServlet() {\r\n\t\tsuper();\r\n\t}", "public AddServlet() {\n\t\tsuper();\n\t}", "public ToptenServlet() {\r\n\t\tsuper();\r\n\t}", "@Override\n public <T extends Servlet> T createServlet(Class<T> clazz) throws ServletException {\n retur...
[ "0.76000464", "0.7389686", "0.7234967", "0.7169051", "0.7041872", "0.69900155", "0.69642764", "0.6901035", "0.6848942", "0.68170625", "0.67686594", "0.6755626", "0.6742096", "0.6684524", "0.66084146", "0.6604393", "0.656933", "0.65627617", "0.65218586", "0.65196925", "0.65182...
0.83046716
0
Handles the HTTP GET method.
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { internalProcessRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { internalProcessRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
/return a reg of type $s or $t
private Register allocateANewRegister() { Register retReg = freeRegisterPool.first(); freeRegisterPool.remove(retReg); return retReg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String reg(SSAStatement s) {\n return registers[freeRegisters[s.getRegister()]];\n }", "private String getReg ( String reg ) throws EVASyntaxException\r\n\t{\r\n\t\tString actual = reg;\r\n\t\tif ( reg.charAt(0) != '$' )\r\n\t\t{\r\n\t\t\t\t\t\tthrow ( new EVASyntaxException (\r\n\t\t\t\"Regist...
[ "0.67252415", "0.6141697", "0.599541", "0.584423", "0.55162805", "0.54042584", "0.5375602", "0.534178", "0.5325128", "0.52937365", "0.525556", "0.5248306", "0.5176977", "0.51202595", "0.5120105", "0.5086228", "0.50827044", "0.50791645", "0.49918756", "0.49565983", "0.49565825...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { DisplayInfo displayInfo=new DisplayInfo(); displayInfo.studentName("Surabhi"); displayInfo.display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int getCount() { return mList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int arg0) { return mList.get(arg0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int arg0) { return arg0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int arg0, View arg1, ViewGroup arg2) { ViewHolder holder = null; String name ; String value; name = mList.get(arg0).getItemName(); value = mList.get(arg0).getItemValue(); Log.d("videoplayer_setting adpter","now arg0 is "+arg0+"now name is "+name+"now value is "+value); if(arg1 == null){ arg1 = mInflater.inflate(R.layout.settingmenuitemxml, null); holder = new ViewHolder(); holder.name = (TextView)arg1.findViewById(R.id.xmlmenuname); holder.value = (TextView)arg1.findViewById(R.id.xmlmenuvalue); arg1.setTag(holder); }else { holder = (ViewHolder)arg1.getTag(); } holder.name.setText(name); holder.value.setText(value); return arg1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
new GStreamClient("localhost", 8080).makeBlockingRequestForLargeDataStream(); new GStreamClient("localhost", 8080).makeAsyncRequestForLargeDataStream(); new GStreamClient("localhost", 8080).makeStreamingRequestForSum();
public static void main(String[] args) throws Exception { new GStreamClient("localhost", 8080).makeStreamingRequestForBatchedSum(); // Observation : for the first two calls - behavior is same. // Iterable hasNext and next are getting called every 2 seconds once server responds // Observation : server is always assumed to stream the response // hence responseObserver is always present // if client does not stream the request, then input is just the simple request object, else StreamObserver }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long request(MarketDataRequest inRequest,\n boolean inStreamEvents);", "DataStreamApi getDataStreamApi();", "@Test\n public void bigDataInMap() throws Exception {\n\n final byte[] data = new byte[16 * 1024 * 1024]; // 16 MB\n rnd.nextBytes(data); // use random data so that Java...
[ "0.6139767", "0.5744872", "0.5633851", "0.56075585", "0.55311227", "0.55311227", "0.55311227", "0.55311227", "0.5504327", "0.5394378", "0.533977", "0.52958995", "0.52564853", "0.5240074", "0.5238983", "0.52011704", "0.51719725", "0.51602125", "0.50903714", "0.5080419", "0.506...
0.6633838
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Handles creation of MediaPlayer object and plays audio.
public void play() { this.mediaPlayer = new MediaPlayer(file); this.mediaPlayer.setVolume(volume); // Listener for end of media. mediaPlayer.setOnEndOfMedia(() -> { this.mediaPlayer.stop(); }); mediaPlayer.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startPlaying() {\n try {\n mPlayer = new MediaPlayer();\n try {\n mPlayer.setDataSource(audioFile.getAbsolutePath());\n mPlayer.prepare();\n mPlayer.start();\n } catch (IOException e) {\n Log.e(LOG_TAG,...
[ "0.7138442", "0.7076031", "0.7051618", "0.70356196", "0.700807", "0.6863251", "0.68626636", "0.67841625", "0.6760159", "0.6730862", "0.669861", "0.6695306", "0.66621697", "0.664766", "0.6622954", "0.6606448", "0.64965504", "0.64924616", "0.64260936", "0.64257026", "0.6412461"...
0.693359
5
Stops playing of media.
public void stop() { if (this.mediaPlayer != null && mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING)) { this.mediaPlayer.stop(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop()\n {\n mediaPlayer.stop();\n }", "private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }", "public void stop() {\n mMediaPlayer.stop();\n setPlayerState(State.STOPPED);\n notifyPlaying();\n }", "...
[ "0.89140207", "0.83474505", "0.81199306", "0.81196636", "0.8104921", "0.8063549", "0.80177", "0.79679525", "0.78956294", "0.78617775", "0.78560936", "0.7829152", "0.77960086", "0.77484524", "0.772534", "0.7612563", "0.76014", "0.757871", "0.75729895", "0.756366", "0.75175923"...
0.8421612
1
Checks status of the media.
public boolean poll() { if (this.mediaPlayer == null) { return false; } return mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkAvailability(Media media) {\n\t\t return false;\n\t }", "public boolean isValid() {\n return media.isValid();\n }", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers...
[ "0.7323723", "0.6880129", "0.63076293", "0.6300736", "0.6211982", "0.6172703", "0.57801926", "0.5776898", "0.5736603", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", "0.5689503", ...
0.5676963
31
Sets the volume for the player.
public void setVolume(double volume) { if (this.mediaPlayer == null) { return; } this.mediaPlayer.setVolume(volume); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVolume(double volume)\n {\n mediaPlayer.setVolume(volume);\n }", "public void setVolume(float volume) {\n mediaPlayer.setVolume(volume, volume);\n }", "public void setVolume(int volume);", "public void setVolume(int v) {\n volume = v;\n }", "void volume(doubl...
[ "0.81986195", "0.8034366", "0.78606826", "0.78514856", "0.7845462", "0.7791433", "0.7760199", "0.7649277", "0.75804424", "0.75653404", "0.75474864", "0.7497932", "0.74971384", "0.749516", "0.74713016", "0.74704796", "0.7463295", "0.7443852", "0.73646164", "0.73634404", "0.724...
0.79155236
2
Initializes and allocates the matrices buffer
public Camera(int boardWidth, int boardLength) { super(); instance = this; // TODO: improve camera init int longerSide = Math.max(boardWidth, boardLength); this.minPitch = 5; this.maxPitch = 89; this.rotation = 0; this.pitch = 20; this.distance = longerSide * 0.9f; this.minDistance = longerSide * 0.1f; this.maxDistance = 1.5f * longerSide; this.center = new Vector3f(); this.center.x = (boardWidth - 1) / 2f; this.center.z = (boardLength - 1) / 2f; this.boardLength = boardLength; this.boardWidth = boardWidth; this.space = this.maxDistance - this.minDistance; zoom(0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public void initializeIOBuffers(){\n for(int i=0; i<outputBuffer.length; i++){\n outputBuffer[i] = new LinkedBlockingQueue();\n...
[ "0.65014076", "0.6386697", "0.63263637", "0.6318051", "0.617232", "0.6089018", "0.6081976", "0.6077547", "0.6047171", "0.6002671", "0.5995915", "0.5946239", "0.59334487", "0.58927906", "0.5783133", "0.5767666", "0.5749003", "0.5743227", "0.5607087", "0.55956525", "0.55929327"...
0.0
-1
creates a new camera with default board width
public Camera() { this(1, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Camera(int boardWidth, int boardLength) {\r\n super();\r\n instance = this;\r\n\r\n // TODO: improve camera init\r\n int longerSide = Math.max(boardWidth, boardLength);\r\n this.minPitch = 5;\r\n this.maxPitch = 89;\r\n this.rotation = 0;\r\n this.pitc...
[ "0.67915684", "0.64111626", "0.63647306", "0.6363759", "0.63456273", "0.6298079", "0.6294579", "0.60722536", "0.6056207", "0.60507417", "0.6041617", "0.6035811", "0.60208005", "0.6013644", "0.59605396", "0.5958584", "0.59551257", "0.59340423", "0.591561", "0.59148467", "0.590...
0.67944545
0
sets the dimensions of the map to the given values
public void setMapDimensions(int boardWidth, int boardLength) { int longerSide = Math.max(boardWidth, boardLength); this.distance = longerSide * 0.9f; this.minDistance = longerSide * 0.1f; this.maxDistance = 1.5f * longerSide; this.center = new Vector3f(); this.center.x = (boardWidth - 1) / 2f; this.center.z = (boardLength - 1) / 2f; this.boardLength = boardLength; this.boardWidth = boardWidth; this.space = this.maxDistance - this.minDistance; zoom(0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDimension(double width, double height);", "@Override\n\tpublic void setDimensions() {\n\t\t\n\t}", "public void set_map(int[][] map) \n\t{\n\t\tthis.map = map;\n\t}", "public void setDimensions(Vector3f dimensions);", "public void setDimension(String key, Dimension value) {\n\t\tif (value != null &...
[ "0.6570268", "0.64455473", "0.6323524", "0.6270616", "0.61788434", "0.6171761", "0.61540145", "0.60983956", "0.6074646", "0.60267997", "0.5981356", "0.5906301", "0.5895114", "0.5824184", "0.57863617", "0.5784708", "0.5775579", "0.57247686", "0.57193637", "0.5703722", "0.57037...
0.66207653
0
returns the instance of this camera
public static Camera getInstance() { return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Camera getInstance() {\n return INSTANCE;\n }", "public CameraInstance getCameraInstance() {\n return cameraInstance;\n }", "public void getCameraInstance() {\n newOpenCamera();\n }", "public static Camera open() { \n return new Camera(); \n }", "Came...
[ "0.8439786", "0.8409811", "0.81496966", "0.80453455", "0.7926923", "0.7925838", "0.7849765", "0.78159577", "0.7803298", "0.77753925", "0.7728759", "0.76593345", "0.75766706", "0.75545126", "0.74741864", "0.7447071", "0.74245393", "0.7398891", "0.7378463", "0.7239851", "0.7239...
0.876207
0
used for moving the camera on the field
public void translateX(float dx) { this.center.x += Math.cos(Math.toRadians(-rotation)) * dx; this.center.z += Math.sin(Math.toRadians(-rotation)) * dx; if (this.center.x > (this.boardWidth - ((this.boardWidth / 2f) * percentZoom))) { this.center.x = (this.boardWidth - ((this.boardWidth / 2f) * percentZoom)); } else if (this.center.x < (this.boardWidth / 2f) * percentZoom) { this.center.x = (this.boardWidth / 2f) * percentZoom; } if (this.center.z > this.boardLength - ((this.boardLength / 2f) * percentZoom)) { this.center.z = this.boardLength - ((this.boardLength / 2f) * percentZoom); } else if (this.center.z < (this.boardLength / 2f) * percentZoom) { this.center.z = (this.boardLength / 2f) * percentZoom; } changed = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void moveCamera() {\n\n\t}", "public void moveCam() {\n float x = this.cam_bind_x; //current pos the camera is binded to\n float y = this.cam_bind_y;\n\n //this amazing camera code is from: https://stackoverflow.com/questions/24047172/libgdx-camera-smooth-translation\n ...
[ "0.82445204", "0.78238297", "0.77807117", "0.7613817", "0.75441927", "0.7458527", "0.73839575", "0.7167776", "0.7094363", "0.70748293", "0.7055969", "0.70389557", "0.70197254", "0.6996539", "0.6951302", "0.6865575", "0.68354005", "0.68131864", "0.67879146", "0.67759436", "0.6...
0.0
-1
Used for the movement of the camera on the Y Axis
public void translateY(float dy) { this.center.x -= Math.sin(Math.toRadians(rotation)) * dy; this.center.z -= Math.cos(Math.toRadians(rotation)) * dy; if (this.center.z > this.boardLength - ((this.boardLength / 2f) * percentZoom)) { this.center.z = this.boardLength - ((this.boardLength / 2f) * percentZoom); } else if (this.center.z < (this.boardLength / 2f) * percentZoom) { this.center.z = (this.boardLength / 2f) * percentZoom; } if (this.center.x > ((this.boardWidth - ((this.boardWidth / 2f) * percentZoom)))) { this.center.x = (this.boardWidth - ((this.boardWidth / 2f) * percentZoom)); } else if (this.center.x < (this.boardWidth / 2f) * percentZoom) { this.center.x = (this.boardWidth / 2f) * percentZoom; } changed = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getYPos() {\r\n\t\treturn this.cameraY;\r\n\t}", "public void moveY() {\n\t\tsetY( getY() + getVy() );\n\t}", "public void setFrameY(double aY) { double y = _y + aY - getFrameY(); setY(y); }", "public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}", "void setY(int newY) {\n this.yPo...
[ "0.76422435", "0.721276", "0.71143156", "0.69737476", "0.6841893", "0.68066704", "0.68066704", "0.68066704", "0.67822915", "0.6770947", "0.6762303", "0.6702309", "0.6696047", "0.66760457", "0.663013", "0.6609322", "0.6607407", "0.65869725", "0.6571978", "0.6571978", "0.655498...
0.0
-1
Overridden to build in the center translation. Nothing more.
@Override protected Matrix4f genViewMatrix() { // refreshes the position position = calcPosition(); // calculate the camera's coordinate system Vector3f[] coordSys = genCoordSystem(position.subtract(center)); Vector3f right, up, forward; forward = coordSys[0]; right = coordSys[1]; up = coordSys[2]; // we move the world, not the camera Vector3f position = this.position.negate(); return genViewMatrix(forward, right, up, position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void center() {\n if (autoCenter) {\n animateTranslationX();\n animateTranslationY();\n }\n }", "private void updateTranslationfromCenterAnchor(Pose pose, int teapotId) {\n float poseX = pose.tx();\n float poseZ = pose.tz();\n\n float anchorPoseX = globalCe...
[ "0.62578154", "0.61647856", "0.59555244", "0.5848222", "0.5815946", "0.58086663", "0.575339", "0.5675392", "0.5657997", "0.564886", "0.56441355", "0.55614406", "0.5550501", "0.55361295", "0.55301476", "0.55254054", "0.5427843", "0.54272", "0.54184425", "0.54138565", "0.541317...
0.0
-1
Calculates the camera's position based on the angles and the distance from space origin (+upOffset).
private Vector3f calcPosition() { float y = (float) (distance * Math.sin(Math.toRadians(pitch))); float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch))); float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation))); float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation))); return new Vector3f(x + center.x, y + center.y, z + center.z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void adjustCameraPosition() {\n if (upward) {\n\n if (tilt<90) {\n tilt ++;\n zoom-=0.01f;\n } else {\n upward=false;\n }\n\n } else {\n if (tilt>0) {\n ...
[ "0.6698852", "0.6475992", "0.6407772", "0.6376467", "0.6323903", "0.62933636", "0.61445916", "0.5978607", "0.5963646", "0.5889375", "0.58871067", "0.5834587", "0.58342344", "0.5829995", "0.5812167", "0.57651687", "0.57181877", "0.57111377", "0.5650822", "0.5647328", "0.560733...
0.660843
1
return the center point of the camera
public Vector3f getCenter() { return center; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector3f getCenterOfProjection() {\n\t\treturn mCenterOfProjection;\n\t}", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "Point getCenter();", "Point getCenter();", ...
[ "0.7851578", "0.78493917", "0.7763106", "0.7727215", "0.7727215", "0.7653343", "0.76285905", "0.7605947", "0.75982404", "0.757711", "0.7540031", "0.7526155", "0.7503696", "0.74780774", "0.74614143", "0.74383736", "0.74275124", "0.73963463", "0.7384628", "0.73778063", "0.73475...
0.76215667
7
return the distance of this camera
public float getDistance() { return distance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: dis...
[ "0.79712796", "0.7579387", "0.7420422", "0.73125124", "0.72638965", "0.7251535", "0.72276175", "0.7204808", "0.71896774", "0.71695936", "0.71418834", "0.71367157", "0.71367157", "0.7119741", "0.7114464", "0.7083866", "0.7083866", "0.7059785", "0.7046333", "0.70404696", "0.700...
0.71325815
13
get the percentage how far the camera is zoomed out
public float getPercentZoom() { return percentZoom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateBasicRatio() {\n if (mLastZoomRatio == DEFAULT_VALUE) {\n if(isAngleCamera()){\n mBasicZoomRatio = 1.6f;\n }else{\n mBasicZoomRatio = ZOOM_UNSUPPORTED_DEFAULT_VALUE;\n }\n } else {\n mBasicZoomRatio = mLas...
[ "0.6754022", "0.66387254", "0.6601013", "0.6550856", "0.65082073", "0.64677393", "0.64083064", "0.6240594", "0.6188973", "0.60849077", "0.6080179", "0.60586196", "0.60350335", "0.6032371", "0.6021666", "0.6019527", "0.59854835", "0.59767294", "0.5898544", "0.5889463", "0.5888...
0.64549315
6
returns the distance between the closest and the farthest possible camera
public float getSpace() { return space; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: dis...
[ "0.7463696", "0.66511416", "0.65244204", "0.6451511", "0.6417933", "0.6390298", "0.6375521", "0.6343751", "0.6301657", "0.62868994", "0.6274668", "0.6246391", "0.62437546", "0.61661714", "0.6163618", "0.6145017", "0.6095391", "0.6092709", "0.60530883", "0.6017314", "0.6012642...
0.0
-1
Register JAXRS application components.
public JerseyInitializer() { this.register(new JacksonJsonProvider(ObjectMapperFactory.create())); this.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true); this.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true); this.packages(true, "com.hh.resources"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyDemoApplication(){\n\t\t//System.out.println(\"hi\");\n\t\t/*register(RequestContextFilter.class);\n\t\tregister(RestServiceUsingJersey.class);\n\t\tregister(ServiceYearImpl.class);\n\t\tregister(YearDaoImpl.class);\n\t\tregister(JacksonFeature.class);*/\n\t\t\n\t\t/**\n\t\t * Register JAX-RS application ...
[ "0.56961167", "0.56371444", "0.55240506", "0.5383549", "0.53485596", "0.533471", "0.5278166", "0.52412015", "0.51728314", "0.5143332", "0.5021059", "0.49723786", "0.4966339", "0.49658027", "0.49453917", "0.4944462", "0.49208793", "0.4895118", "0.4879816", "0.48329723", "0.482...
0.51882994
8
TODO Autogenerated method stub
@Override public void onClick( DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { super.run(); try { has_newVersion = hasServerVersion(); newVerName = getNewVersionURL(); if (has_newVersion) { handler.sendEmptyMessage(Const.NEWVERSION); } } catch (NameNotFoundException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onUserLeaveHint() { super.onUserLeaveHint(); notification.showNotification(); moveTaskToBack(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); // 保存周期 // editor.putInt("cycle", cycl[timeCycle.getSelectedItemPosition()]); // editor.commit(); // boolean isIP = Util.isIpv4(ip.getText().toString()); // if(isIP==false) // { // new // AlertDialog.Builder(Set.this).setTitle("提示").setMessage("IP地址不合法,请重新输入!") // .setCancelable(false) // .setPositiveButton("确定", new DialogInterface.OnClickListener() { // @Override // public void onClick(DialogInterface dialog, int which) { // // TODO Auto-generated method stub // dialog.dismiss(); // ip.setText(""); // } // }).create().show(); // } // else // { // editor.putString("server_ip", ip.getText().toString()); // editor.commit(); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
ignore errors but hide progress
@Override public void onNewsReceiveError() { setProgressBarIndeterminateVisibility(false); // reset fetcher task mFetcherTask = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "void hideProgress();", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "public void hideProgressDialog() {\r\n\t\trunOnUiThread(new Runnab...
[ "0.7662462", "0.75564975", "0.7256243", "0.69738173", "0.69490725", "0.6842599", "0.67724353", "0.6668524", "0.66561455", "0.6641868", "0.6627382", "0.6587151", "0.6562315", "0.6562315", "0.65614426", "0.6519674", "0.6514578", "0.65005445", "0.64761025", "0.64494556", "0.6438...
0.0
-1
CREATE AN ARRAY FROM THE TERMINAL Add elements to the array from the terminal until the user enters nothing
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ArrayList<Integer> arrayList = new ArrayList<>(); System.out.println("pleas enter a element "); String input = scanner.nextLine(); while (!input.equals("exit")){ arrayList.add(Integer.parseInt(input)); input =scanner.nextLine(); } System.out.println(arrayList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] takeInput() {\n System.out.println(\"Enter size of arrays : \");\n int size = scn.nextInt();\n\n // declaring arrays \n int[] arrays = new int[size];\n\n // taking input from user\n for (int i = 0; i < arrays.length; i++) {\n System.out.print...
[ "0.64329296", "0.6418267", "0.6328941", "0.629666", "0.6290755", "0.6197232", "0.61648446", "0.6155081", "0.61075944", "0.6085303", "0.60827667", "0.6061707", "0.6000015", "0.5999443", "0.5945535", "0.59404296", "0.5875513", "0.58712626", "0.5834676", "0.5810679", "0.5808572"...
0.60907507
9
Created by Administrator on 2017/8/9.
public interface SplashView { void onCheckLogin(boolean isLogin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "pri...
[ "0.62658614", "0.6120614", "0.5841633", "0.5831579", "0.5830393", "0.5805522", "0.5763946", "0.5743277", "0.5740511", "0.57393867", "0.5732114", "0.5732114", "0.57198036", "0.5714254", "0.57118565", "0.5693828", "0.56911665", "0.5690636", "0.5690636", "0.56858087", "0.5674609...
0.0
-1
checks if a specific move is generated at the current board position
private boolean moveExists(int move) { int[] board = mGame.getBoard(); int piece = board[move & Move.SQUARE_MASK]; int side = piece >> Piece.SIDE_SHIFT & 1; if (side != mGame.getCurrentSide()) { return false; } if ((piece & Piece.DEAD_FLAG) != 0) { return false; } MoveArray moves = MoveGenerator.generateMoves(mGame); int[] mv = moves.getMoves(); int size = moves.size(); for (int i = 0; i < size; i++) { if(mv[i] == move) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkMove(int move)\n\t{\n\t\tif (columns[move] < 6)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public abstract boolean validMove(ChessBoard board, Square from, Square to);", "boolean isValidMove(int col);", "boolean legalMove(Move mov) {\n if...
[ "0.75180966", "0.74976325", "0.7489511", "0.7487422", "0.74137604", "0.7386298", "0.73517996", "0.7292272", "0.7287333", "0.7279617", "0.72437143", "0.7229284", "0.71639913", "0.7159369", "0.7159318", "0.7150294", "0.7120763", "0.71168584", "0.70783305", "0.70779485", "0.7039...
0.7724079
0
/ renamed from: X.AIK
public interface AIK { ColorStateList AGZ(AnonymousClass7R3 r1); float AL0(AnonymousClass7R3 r1); float APW(AnonymousClass7R3 r1); float AQJ(AnonymousClass7R3 r1); float AQL(AnonymousClass7R3 r1); float ATV(AnonymousClass7R3 r1); void AdX(); void Add(AnonymousClass7R3 r1, Context context, ColorStateList colorStateList, float f, float f2, float f3); void AxT(AnonymousClass7R3 r1); void BFN(AnonymousClass7R3 r1); void BgA(AnonymousClass7R3 r1, ColorStateList colorStateList); void BhK(AnonymousClass7R3 r1, float f); void Bin(AnonymousClass7R3 r1, float f); void Bjy(AnonymousClass7R3 r1, float f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "public interface C24717ak {\n}", "void mo1942k();", "@Override\n\tpublic void startIBK() {\n\t\talgo.algoIBK();\n\t}", "private void getAI(){\n\n }", "public void mo21786K() {\n }", "public void mo38117a() {\n }", "void mo1940i();", "protected void mo625...
[ "0.64508796", "0.59632313", "0.59581673", "0.5887503", "0.56812704", "0.56658036", "0.5641655", "0.562068", "0.56177497", "0.5614061", "0.5542611", "0.55131125", "0.54889977", "0.5478367", "0.54658884", "0.54327166", "0.5431946", "0.5428598", "0.54218125", "0.5416157", "0.541...
0.5744667
4
Creates a new instance of IncompleteGammaFunctionFraction
public IncompleteGammaFunctionFraction(double a) { alpha = a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getGamma();", "public float getGamma();", "public baconhep.TTau.Builder clearNSignalGamma() {\n fieldSetFlags()[8] = false;\n return this;\n }", "public baconhep.TTau.Builder setPuppiGammaIso(float value) {\n validate(fields()[18], value);\n this.puppiGammaIso = value;\n fi...
[ "0.57390374", "0.5663484", "0.5569923", "0.5531115", "0.540574", "0.53654146", "0.53397006", "0.5332428", "0.52579904", "0.52543235", "0.5177779", "0.5151055", "0.5128965", "0.5048209", "0.5029808", "0.49875727", "0.49770218", "0.4970374", "0.49326456", "0.49272203", "0.49225...
0.75246555
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { String[] numbers = {"2", "4", "6", "8","10"}; View v = inflater.inflate(R.layout.fragment_my_fragment1, container, false); final Spinner spin = (Spinner)v.findViewById(R.id.mySpinner); ArrayAdapter<String> stringArrayAdapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item, numbers); spin.setAdapter(stringArrayAdapter); Button myButton = (Button)v.findViewById(R.id.myButton); myButton.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { String text = spin.getSelectedItem().toString(); mListener.onNumberSelected(Integer.parseInt(text)); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO Autogenerated method stub
public void run() { f.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constants used in the model
public interface ModelConstants { // elements @Deprecated public final static String ACQUISITION_STRATEGY = "acquisition-strategy"; public final static String DATASOURCE = "datasource"; public final static String HISTORY_LEVEL = "history-level"; public final static String JOB_ACQUISITION = "job-acquisition"; public final static String JOB_ACQUISITIONS = "job-acquisitions"; public final static String JOB_EXECUTOR = "job-executor"; public final static String PROCESS_ENGINE = "process-engine"; public final static String PROCESS_ENGINES = "process-engines"; public final static String PROPERTY = "property"; public final static String PROPERTIES = "properties"; public final static String CONFIGURATION = "configuration"; public final static String PLUGINS = "plugins"; public final static String PLUGIN = "plugin"; public final static String PLUGIN_CLASS = "class"; // attributes public final static String DEFAULT = "default"; public final static String NAME = "name"; public final static String THREAD_POOL_NAME = "thread-pool-name"; /** The name of our subsystem within the model. */ public static final String SUBSYSTEM_NAME = "camunda-bpm-platform"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n pu...
[ "0.6867221", "0.6573128", "0.65363044", "0.652824", "0.65025616", "0.64590436", "0.64568365", "0.6435496", "0.64059865", "0.63642436", "0.6350485", "0.63494563", "0.63444763", "0.6335827", "0.63275915", "0.6306507", "0.62823", "0.62711716", "0.6259183", "0.62545323", "0.62534...
0.7478877
0
TODO Autogenerated method stub
public static void main(String[] args) { FileInputStream s=null; FileOutputStream b=null; byte buffer[]=new byte[1000]; int t; try{ s=new FileInputStream("dir/01.txt"); //用t来一个一个接受字节,每个汉字占2个字节。 /*while((t=s.read())!=-1) { System.out.println((char)t); }*/ b=new FileOutputStream("dir/02.txt"); //先放在缓存区里,然后一股脑儿输出 t=s.read(buffer,0,buffer.length); for(int i=0;i<buffer.length;i++) System.out.print((char)buffer[i]); b.write(buffer); } catch(IOException e){ System.out.println(e.getMessage()); } finally{ try{ s.close(); } catch(IOException e){ } try{ b.close(); } catch(IOException e){ } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.about, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.7346...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.dashboard) { // Handle the camera action final List<ProjectsModel> storedProjectsModels = ProjectsModel.getAllProjects(); if (storedProjectsModels.size() > 0) { // means we have projects and need to show the dash board with the projects Intent i = new Intent(getApplication(), DashboardActivity.class); // moves to the fine aligment screen i.putExtra("projectId", storedProjectsModels.get(0).projectId); startActivity(i); } else { // means we don't have any projects and need to show the empty dashboard Intent i = new Intent(getApplication(), EmptyDashboardActivity.class); // moves to the fine aligment screen startActivity(i); } } else if (id == R.id.projects) { Intent i = new Intent(getApplication(), projectSelectionMainFragment.class); // moves to the fine aligment screen startActivity(i); } else if (id == R.id.news) { } else if (id == R.id.support) { } else if (id == R.id.tutorials) { } else if (id == R.id.about_section) { } else if (id == R.id.installationGuide) { Intent i = new Intent(getApplication(), InstallationGuideActivity.class); // moves to the fine aligment screen startActivity(i); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
Creates a new instance of UndirectedEdge.
public UndirectedEdge(VType from, VType to) { // TODO: Add your code here super(from,to); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UndirectedEdge() {\n \tthis(null,null);\n\t}", "@DisplayName(\"Add undirected edge\")\n @Test\n public void testAddEdgeUndirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l0 = new ArrayList<>();\n l0.add(0);\n List<Integer> l1 = new ArrayList<>();\n ...
[ "0.82221264", "0.6145191", "0.5891266", "0.5799515", "0.57061917", "0.56973636", "0.5577595", "0.55174536", "0.5467738", "0.545049", "0.5446338", "0.54436636", "0.5440309", "0.54239744", "0.54239744", "0.5335314", "0.5321748", "0.5287859", "0.527644", "0.526134", "0.5233802",...
0.6534788
1
Creates a new instance of UndirectedEdge.
public UndirectedEdge() { this(null,null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UndirectedEdge(VType from, VType to) {\n\t\t// TODO: Add your code here\n\t\tsuper(from,to);\n\t}", "@DisplayName(\"Add undirected edge\")\n @Test\n public void testAddEdgeUndirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l0 = new ArrayList<>();\n l0.add(0);\n ...
[ "0.6534788", "0.6145191", "0.5891266", "0.5799515", "0.57061917", "0.56973636", "0.5577595", "0.55174536", "0.5467738", "0.545049", "0.5446338", "0.54436636", "0.5440309", "0.54239744", "0.54239744", "0.5335314", "0.5321748", "0.5287859", "0.527644", "0.526134", "0.5233802", ...
0.82221264
0
Returns the source of that edge.
@Override public VType getSource() { // TODO: Add your code here return super.from; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vertex getSource() {\n return source;\n }", "@Override\n public Vertex getSource() {\n return sourceVertex;\n }", "ElementCircuit getSource();", "public Node getSource() {\n return this.source;\n }", "public Node source() {\n\t\treturn _source;\n\t}", "public Endpo...
[ "0.76032174", "0.7363153", "0.7307688", "0.72457063", "0.70245206", "0.69584423", "0.68928695", "0.6882938", "0.68238354", "0.68238354", "0.6806287", "0.6805406", "0.67674124", "0.6759237", "0.67475283", "0.6736403", "0.6714401", "0.6610855", "0.6603948", "0.6603948", "0.6601...
0.61913276
68
Returns the target of that edge
@Override public VType getTarget() { // TODO: Add your code here return super.to; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@InVertex\n Object getTarget();", "public Node getTarget() {\n return target;\n }", "public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}", "@Override\n public Vertex getTarget() {\n return targetVertex;\n }", "public Point getTarget() {\n\t\treturn _target;\n\t}", "publi...
[ "0.7486547", "0.7331168", "0.72561705", "0.7140433", "0.7139151", "0.7121221", "0.70727557", "0.7006426", "0.70053166", "0.6969802", "0.6966144", "0.68603367", "0.68185073", "0.68185073", "0.68182206", "0.6701767", "0.66977435", "0.66961765", "0.66944987", "0.66940075", "0.66...
0.58995295
66
Returns string representation of UndirectedEdge.
@Override public String toString(){ return this.from+"----"+this.to; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String edgeString()\n {\n Iterator<DSAGraphEdge<E>> iter = edgeList.iterator();\n String outputString = \"\";\n DSAGraphEdge<E> edge = null;\n while (iter.hasNext())\n {\n edge = iter.next();\n outputString = (outputString + edge.getLabel() + \", ...
[ "0.6706524", "0.65978575", "0.6546591", "0.6374156", "0.6162231", "0.60681707", "0.6062523", "0.603629", "0.6000234", "0.59346646", "0.5864952", "0.5840486", "0.58262634", "0.58127636", "0.5808368", "0.57325804", "0.5732469", "0.5720584", "0.57091975", "0.5703023", "0.5677836...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ListNode head = new ListNode(1); ListNode n2 = new ListNode(3); ListNode n3 = new ListNode(4); ListNode n4 = new ListNode(2); ListNode n5 = new ListNode(5); ListNode n6 = new ListNode(6); ListNode n7 = new ListNode(6); head.next = n2; n2.next = n6; n6.next = n3; n3.next = n4; n4.next = n5; n5.next = n7; RemoveLinkedListElements slt = new RemoveLinkedListElements(); PrintListNode res = new PrintListNode(); int val = n6.val; res.print(slt.removeElements_1(head, 4)); res.print(slt.removeElements_bb(head, 4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
post: constructs an empty tree
public IntTree() { overallRoot = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeEmpty()\n {\n root = nil;\n }", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t\tleftChild = null;\r\n\t\trightChild= null;\r\n\t}", "public void makeEmpty( )\r\n\t{\r\n\t\troot = null;\r\n\t}", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t}", "public void makeEmpty...
[ "0.69569147", "0.6955827", "0.69515795", "0.68762326", "0.68712467", "0.6858413", "0.68163675", "0.6814261", "0.6744828", "0.6729575", "0.667739", "0.6609902", "0.66050464", "0.65896267", "0.6580334", "0.6529961", "0.65025735", "0.6491872", "0.64774084", "0.64734167", "0.6466...
0.0
-1
pre : max > 0 post: constructs a sequential tree with given number of nodes
public IntTree(int max) { if (max <= 0) { throw new IllegalArgumentException("max: " + max); } overallRoot = buildTree(1, max); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\...
[ "0.70973307", "0.6751411", "0.66854113", "0.64451873", "0.6424889", "0.6381877", "0.6303501", "0.62664574", "0.62151986", "0.6209923", "0.62042654", "0.6175858", "0.6171591", "0.6152238", "0.6146272", "0.61250675", "0.61250675", "0.612282", "0.60971236", "0.60964537", "0.6091...
0.5873476
35
IntTree methods from class post: returns a sequential tree with n as its root unless n is greater than max, in which case it returns an empty tree
private IntTreeNode buildTree(int n, int max) { if (n > max) { return null; } else { return new IntTreeNode(n, buildTree(2 * n, max), buildTree(2 * n + 1, max)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IntTreeNode buildTree(int n, int max) {\r\n if (n > max) {\r\n return null;\r\n } else {\r\n return new IntTreeNode(n, buildTree(2 * n, max),\r\n buildTree(2 * n + 1, max));\r\n }\r\n }", "public IntTree(int max) {\r\n ...
[ "0.80265564", "0.7706681", "0.76981205", "0.6602165", "0.64492786", "0.63564056", "0.6342646", "0.62773097", "0.6268393", "0.62442493", "0.6201975", "0.6114873", "0.6079485", "0.60682094", "0.59427553", "0.5917431", "0.5867973", "0.58393764", "0.583277", "0.5819849", "0.57841...
0.7993273
1
pre : tree is a binary search tree post: value is added to overall tree so as to preserve the binary search tree property
public void add(int value) { overallRoot = add(overallRoot, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tree<T> add(Tree<T> tree) {\n checkForNull(tree);\n\n if (childrenValueSet.contains(tree.value)) {\n return null;\n }\n\n if (tree.parent != null) {\n tree.remove();\n }\n\n tree.parent = this;\n children.add(tree);\n childrenValu...
[ "0.7183966", "0.6662534", "0.6439387", "0.6328256", "0.6319511", "0.6293745", "0.628786", "0.6232303", "0.61746097", "0.6122033", "0.60945445", "0.6084331", "0.60837126", "0.60775816", "0.6075876", "0.6026704", "0.6021711", "0.59951913", "0.5990002", "0.59698856", "0.59637403...
0.0
-1
post: value is added to given binary search tree so as to preserve the binary search tree property
private IntTreeNode add(IntTreeNode root, int value) { if (root == null) { root = new IntTreeNode(value); } else if (value <= root.data) { root.left = add(root.left, value); } else { root.right = add(root.right, value); } return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tree<T> add(Tree<T> tree) {\n checkForNull(tree);\n\n if (childrenValueSet.contains(tree.value)) {\n return null;\n }\n\n if (tree.parent != null) {\n tree.remove();\n }\n\n tree.parent = this;\n children.add(tree);\n childrenValu...
[ "0.6231778", "0.6134183", "0.61194986", "0.6087237", "0.60557264", "0.603908", "0.60258466", "0.5986968", "0.5980494", "0.5974797", "0.59268177", "0.5919507", "0.59185296", "0.5850068", "0.5842802", "0.5825698", "0.58248025", "0.58168", "0.5799385", "0.5799385", "0.5788731", ...
0.55910367
44
post: prints the tree contents using a preorder traversal
public void printPreorder() { System.out.print("preorder:"); printPreorder(overallRoot); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.has...
[ "0.8155258", "0.80770487", "0.79357713", "0.78719676", "0.7830665", "0.7830665", "0.7742422", "0.773891", "0.77241063", "0.7713989", "0.77050114", "0.7630106", "0.75826097", "0.7572948", "0.7551674", "0.7526947", "0.75200063", "0.7464203", "0.74580127", "0.74547225", "0.74288...
0.7701706
11
post: prints in preorder the tree with given root
private void printPreorder(IntTreeNode root) { if (root != null) { System.out.print(" " + root.data); printPreorder(root.left); printPreorder(root.right); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n ...
[ "0.8495096", "0.8480297", "0.8456519", "0.8437696", "0.84327465", "0.8420224", "0.84056044", "0.8350118", "0.8350118", "0.8338154", "0.8275401", "0.82467335", "0.8226115", "0.8199899", "0.8183317", "0.8179822", "0.8147374", "0.8141159", "0.81252456", "0.8124724", "0.8079943",...
0.8358255
7
post: prints the tree contents using an inorder traversal
public void printInorder() { System.out.print("inorder:"); printInorder(overallRoot); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < d...
[ "0.78300977", "0.7810772", "0.7769437", "0.7630187", "0.75883", "0.7554825", "0.75493366", "0.7501846", "0.7454109", "0.742054", "0.738667", "0.7383533", "0.73060644", "0.7294015", "0.7294015", "0.72935045", "0.72895974", "0.72875327", "0.72338694", "0.72266585", "0.7170943",...
0.7040955
36
post: prints in inorder the tree with given root
private void printInorder(IntTreeNode root) { if (root != null) { printInorder(root.left); System.out.print(" " + root.data); printInorder(root.right); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }", "public void postOrder(){\n postOrder(root);\n System.out.println();\n ...
[ "0.8106092", "0.79645413", "0.7950893", "0.79302514", "0.7886247", "0.7861351", "0.78478545", "0.78433526", "0.78015155", "0.77446026", "0.7736108", "0.77194315", "0.770069", "0.76947206", "0.7691376", "0.76837164", "0.76747876", "0.76347333", "0.76347333", "0.76313204", "0.7...
0.7841904
8
post: prints the tree contents using a postorder traversal
public void printPostorder() { System.out.print("postorder:"); printPostorder(overallRoot); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((Tree...
[ "0.82164395", "0.80192727", "0.79934204", "0.78299755", "0.78140813", "0.7782029", "0.7748556", "0.77378964", "0.7722264", "0.7684574", "0.76606286", "0.7566616", "0.7559298", "0.7527335", "0.7512869", "0.7495133", "0.74834746", "0.7475905", "0.7473667", "0.7458887", "0.74564...
0.7872503
3
post: prints in postorder the tree with given root
private void printPostorder(IntTreeNode root) { if (root != null) { printPostorder(root.left); printPostorder(root.right); System.out.print(" " + root.data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }", "protected void postorder(TreeNode<E> root) {\n if (root == null) {\n ...
[ "0.8555738", "0.849623", "0.8494571", "0.8419477", "0.83827317", "0.82829887", "0.82773066", "0.82452583", "0.8220839", "0.82091016", "0.82011443", "0.81959134", "0.81767684", "0.81646043", "0.81432194", "0.81137466", "0.80793923", "0.8008551", "0.79905856", "0.79564136", "0....
0.81864256
12
post: prints the tree contents, one per line, following an inorder traversal and using indentation to indicate node depth; prints right to left so that it looks correct when the output is rotated; prints "empty" for an empty tree
public void printSideways() { if (overallRoot == null) { System.out.println("empty tree"); } else { printSideways(overallRoot, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getVa...
[ "0.7350561", "0.7169045", "0.7153596", "0.7086984", "0.7086984", "0.7055946", "0.70069104", "0.699877", "0.6980533", "0.6973407", "0.69618154", "0.69594824", "0.69391304", "0.69285715", "0.6919946", "0.6888469", "0.6884179", "0.68364054", "0.68262684", "0.6805801", "0.6727319...
0.0
-1
post: prints in reversed preorder the tree with given root, indenting each line to the given level
private void printSideways(IntTreeNode root, int level) { if (root != null) { printSideways(root.right, level + 1); for (int i = 0; i < level; i++) { System.out.print(" "); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n...
[ "0.72256154", "0.71152663", "0.70988077", "0.7082171", "0.706359", "0.7053201", "0.7027289", "0.69949937", "0.6989513", "0.6954887", "0.6954143", "0.6951313", "0.6949899", "0.6934333", "0.69132876", "0.69029707", "0.6888737", "0.6886424", "0.6884645", "0.68754816", "0.6870475...
0.0
-1
if (!check(comStr,c1,c2)) return 0;
int findExistNum(int N, char c1, char c2, String comStr) { String n1Str = findNth(c1, c2, comStr,1); int curn1 = findSubstr(n1Str, comStr); return findG(N,c1,c2,comStr,curn1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean checkChar(String s1, String s2);", "String[] checkIfLegalCommand(String strToChck);", "@Test\n public void testComp2()\n {\n System.out.println(\"comp\");\n String compString = \"D+M\";\n assertEquals(\"1000010\", N2TCode.comp(compString));\n }", "@Test\n public void ...
[ "0.67224276", "0.6544234", "0.6364199", "0.6361345", "0.6351476", "0.6229207", "0.6165539", "0.61294925", "0.609434", "0.6059725", "0.60149086", "0.59964395", "0.5986936", "0.5972155", "0.5969813", "0.5958436", "0.59559685", "0.5946269", "0.59359014", "0.5919022", "0.5905584"...
0.5823517
25
CHANGE PATH TO YOU CHROME DRIVER
@Test public void test1() { FirefoxBinary binary = new FirefoxBinary(new File(FIREFOX_PATH)); driver = TestBench.createDriver( new FirefoxDriver(binary, new FirefoxProfile())); setDriver(driver); getDriver().get(URL); ButtonElement button = $(ButtonElement.class).first(); button.click(); LabelElement label = $(LabelElement.class).id("result"); Assert.assertEquals("Thanks , it works!",label.getText()); driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}", "public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"...
[ "0.70020455", "0.69758004", "0.6923994", "0.6737509", "0.6674685", "0.6404301", "0.6375619", "0.6343186", "0.6342676", "0.6268588", "0.61761683", "0.61472774", "0.61061114", "0.6090634", "0.6082551", "0.60005593", "0.59535635", "0.59444076", "0.59116435", "0.59001404", "0.587...
0.0
-1