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
Gets the PlayerCode of this GameMove.
public PlayerCode getPlayerCode(){ return this.playerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPlayerNumber() {\n\t\tif(this.player == null) return 0;\n\t\telse return this.player.number;\n\t}", "public int getPlayerNumber() {\n\t\treturn playerNumber;\n\t}", "public int getPlayerNumber() {\n\t\treturn playerNumber;\n\t}", "public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}", "pub...
[ "0.66078186", "0.6392881", "0.6392881", "0.63839763", "0.6370088", "0.63690597", "0.6359564", "0.6352533", "0.62754697", "0.624726", "0.6206425", "0.6177825", "0.61598855", "0.6155457", "0.61507076", "0.6139695", "0.61277884", "0.6123063", "0.61227953", "0.6107058", "0.608903...
0.7680016
0
Interface for callback invocation when wifi direct info changed.
public interface IWifiP2pListener { void onWiFiStateChange(int state); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connec...
[ "0.72045594", "0.67250156", "0.66877866", "0.6465145", "0.64345247", "0.63670164", "0.6338014", "0.6177378", "0.6158477", "0.61454976", "0.6031254", "0.5981428", "0.5966317", "0.5962803", "0.59499717", "0.59388393", "0.5874587", "0.58388287", "0.58240473", "0.58236235", "0.57...
0.625969
7
Update the fragment without causing navigator to change view
private void setFragmentParameter(String productId) { String fragmentParameter; if (productId == null || productId.isEmpty()) { fragmentParameter = ""; } else { fragmentParameter = productId; } Page page = MyUI.get().getPage(); page.setUriFragment("!" + JobsView.VIEW_NAME + "/" + fragmentParameter, f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void refreshFragment() {\n }", "public abstract void updateFragmentUI();", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = g...
[ "0.7945681", "0.76372206", "0.74247545", "0.6891522", "0.68804944", "0.6824228", "0.6781206", "0.6771332", "0.6771332", "0.6746143", "0.6743942", "0.6661346", "0.6653398", "0.6602207", "0.657735", "0.64764357", "0.64381486", "0.64090115", "0.6404367", "0.6388122", "0.63860184...
0.0
-1
adds new user to the database
public void register (String username, String password) throws JSONException { view.showProgressBar(); model.signUp(username, password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}", "public void insertUser() {}", "void addUser(User user);", "void addUser(User us...
[ "0.777886", "0.77638316", "0.7699927", "0.7699927", "0.7669148", "0.76644623", "0.76597023", "0.7647305", "0.7611081", "0.7544655", "0.7544395", "0.74726564", "0.74714464", "0.7457184", "0.7448959", "0.744743", "0.7423399", "0.738042", "0.7371733", "0.73660374", "0.7362831", ...
0.0
-1
Updates a String with the returned json object that is in string format
@Override public void onSuccess(String JSONObject_String) { view.hideProgressBar(); view.updateUserInfoTextView(JSONObject_String); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return jsonString;\n }", "@JsonIgnore\n\tpublic String getJsonUpdateString() {\n\t\ttry {\n\t\t\treturn mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\treturn (\"Failed to serialize statement update to JSON: \" + e.toString())...
[ "0.6695776", "0.66910285", "0.66691226", "0.6632751", "0.6570232", "0.6568631", "0.65050495", "0.62978846", "0.62885827", "0.62669253", "0.61927223", "0.61823094", "0.6175886", "0.61497515", "0.60998905", "0.6062921", "0.60132897", "0.59764385", "0.59764385", "0.59764385", "0...
0.0
-1
SQLite connection string String url = "jdbc:sqlite:C://sqlite/db/tests.db"; SQL statement for creating a new table
public static void createNewTable(String fileName) { connect(fileName); String sqlUrl = "CREATE TABLE IF NOT EXISTS urls (\n" + " id integer PRIMARY KEY AUTOINCREMENT,\n" + " url text NOT NULL\n" + ");"; String sqlDesc = "CREATE TABLE IF NOT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t ...
[ "0.79048854", "0.7333986", "0.7216897", "0.7140312", "0.7057256", "0.6934611", "0.68819815", "0.68420243", "0.68166196", "0.67894804", "0.67608696", "0.674289", "0.67369837", "0.67141914", "0.6691525", "0.66673946", "0.6650351", "0.663476", "0.6609408", "0.66045743", "0.65714...
0.673359
13
Insert a new row into the warehouses table
public void insert(String name, String fileName) { connect(fileName); String sql = "INSERT INTO urls(url) VALUES(?)"; try (PreparedStatement pstmt = conn.prepareStatement(sql)) { pstmt.setString(1, name); pstmt.executeUpdate(); } catch (SQLException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int Insert(Warehouse ware) {\n\t\ttry {\n\t\t\t\n\t\t\t System.out.println(\"WarehouseDAOManager is working\");\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t return (int)getSqlMapClientTemplate().insert(\"Warehouse.insertWarehouse\", ware);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\te...
[ "0.66590905", "0.64487076", "0.6426128", "0.6424614", "0.63212556", "0.62585485", "0.6244943", "0.6217628", "0.62010294", "0.6150046", "0.61017877", "0.6051438", "0.6046745", "0.6043105", "0.6025511", "0.5973245", "0.59585434", "0.59493893", "0.59400326", "0.5928541", "0.5869...
0.0
-1
message that was sent
public String toString() { return "[MessageSentConfirmation] - " + plate + ", " + state + ", " + text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void messageSent();", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "public void messageSent(Message m) {\n\t\t\r\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "void sendMessage() {\n\n\t}", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "public void...
[ "0.7821381", "0.7239182", "0.72121537", "0.7002425", "0.6811376", "0.67827564", "0.6742555", "0.67381823", "0.6704512", "0.6703085", "0.6701124", "0.6684528", "0.6663792", "0.665708", "0.66329753", "0.66194254", "0.6608093", "0.6608093", "0.6608093", "0.6608093", "0.6608093",...
0.0
-1
Leader leader = new Leader(" L 3 4 21 GD Tilly "); System.out.println(leader.getLine());
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void findLeader(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\n\t\t\t// Find Reader (1): First instruction of program\n\t\t\tline = br.readLine();\n\t\t\tLeaders.put(lineCount, line);\n\t\t\tlineCount++;\n\n\t\t\twhile ((line = b...
[ "0.62954473", "0.62214583", "0.6131533", "0.5918629", "0.5829469", "0.58264315", "0.57868385", "0.5771017", "0.57627356", "0.5700154", "0.5667173", "0.56494486", "0.5644532", "0.5636017", "0.5632567", "0.5600676", "0.5597197", "0.5590556", "0.5567791", "0.5561089", "0.5560391...
0.0
-1
Returns the shorthand string of the piece.
public final String pieceToString(final IChessPiece p) { String name = ""; name += p.player().name().charAt(0); name += p.type().charAt(0); return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String shorthand(String s){\n \tif(s.toUpperCase().indexOf(\"YOU\")>=0){\n \t\ts=s.substring(0, s.toUpperCase().indexOf(\"YOU\"))+\" U \"+s.substring(s.toUpperCase().indexOf(\"YOU\")+3);\n \t\ts=shorthand(s);\n \t}else if(s.toUpperCase().indexOf(\"FOR\")>=0){\n \t\ts=s.substring(0, s.t...
[ "0.62594575", "0.6114854", "0.6068639", "0.6026173", "0.6020706", "0.6003421", "0.59909207", "0.5984329", "0.58743674", "0.58564717", "0.5787528", "0.5770076", "0.5744247", "0.573975", "0.5733357", "0.5716642", "0.5714617", "0.5710517", "0.5702135", "0.5702135", "0.5702135", ...
0.5685096
21
Displays if put self in check.
public final void putSelfInCheck() { out.println("You can't place yourself in check."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void display(){\n System.out.println(\"***************\");\n System.out.println(\"Checking Account\");\n super.display();\n System.out.println(\"Routing Number: \" + routingNumber);\n }", "@Override\r\n public void display() {\n super.display();\r\n ...
[ "0.6557584", "0.6452395", "0.63421065", "0.6262594", "0.6146314", "0.6079264", "0.60685873", "0.5902225", "0.5881681", "0.58339936", "0.5823841", "0.5823841", "0.58150935", "0.58121884", "0.58121884", "0.579892", "0.57617384", "0.5760727", "0.5722237", "0.57038367", "0.570343...
0.6736558
0
Displays if player has been placed in check.
public final void inCheck() { out.println("You have been placed in check!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean showPlayer(){\n\t\t\n\t\tSystem.out.println(\"\\t\"+color+\"\\t \"+playermoney+\"\\t \\t\"+totalminions+\" \\t\"+totalbuildings+\" \\t\\t\"+personalityCard.cardName);\n\t\treturn true;\n\t}", "private void showTurn()\n {\n if( PlayerOneTurn == true )\n {\n if(...
[ "0.692337", "0.6711084", "0.64252317", "0.64221704", "0.64050883", "0.63626933", "0.63544667", "0.6286927", "0.6271426", "0.6239004", "0.6222229", "0.62200665", "0.621913", "0.6212506", "0.61976063", "0.61880434", "0.61277044", "0.6102494", "0.6100307", "0.6069608", "0.605385...
0.6753467
1
Displays if invalid input.
public final void invalidInput() { out.println("Command not recognized. Please try again."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}", "public void showInputError() {\n\n resultLabel.setText(\"Choose another space!\");\n\n }", "private void printErrorMenu() {\n System.out.println(\"Invalid input. Please check inputs and try again.\");...
[ "0.7649919", "0.7573515", "0.7326641", "0.71421635", "0.70853794", "0.6881642", "0.6794847", "0.6773233", "0.6682939", "0.6650716", "0.66257805", "0.66061366", "0.66032696", "0.66032696", "0.6503743", "0.64883876", "0.6467091", "0.64523846", "0.64071393", "0.6392507", "0.6375...
0.65759444
14
The style of the text input, text output and max history entries are updated. This includes foreground color of the output text field (color used to show the user input) font and background color of the output text field color for the returned values in the output text field color and font of the input text field maxim...
public void updateStyle() { this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB())); this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB())); this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.getFontData(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter....
[ "0.6672265", "0.6192933", "0.56591153", "0.56461257", "0.56371146", "0.55782086", "0.5566505", "0.55624765", "0.55357707", "0.5516852", "0.55006343", "0.54506785", "0.54493433", "0.53179306", "0.5315021", "0.52874184", "0.52546996", "0.5253322", "0.52470046", "0.5209848", "0....
0.7722504
0
Updates after a property change the shell styles.
public void propertyChange(final PropertyChangeEvent _event) { this.updateStyle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateStyle()\n {\n this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB()));\n this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB()));\n this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.get...
[ "0.70598215", "0.59726506", "0.5950546", "0.573019", "0.5716871", "0.5696283", "0.5622972", "0.56104016", "0.5580664", "0.5577236", "0.5568987", "0.5505337", "0.54989696", "0.5494299", "0.54874754", "0.5486673", "0.54630136", "0.54492396", "0.54269856", "0.54091924", "0.54057...
0.55795443
9
If the shell gets focus, the text input field must get the focus.
@Override public void setFocus() { this.textInput.setFocus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", ...
[ "0.75173026", "0.7337038", "0.7087799", "0.7067733", "0.7044274", "0.7043026", "0.7035105", "0.7031514", "0.7031514", "0.7031514", "0.7031514", "0.7031514", "0.6997945", "0.69844866", "0.6977467", "0.6977037", "0.69591844", "0.6935366", "0.6935366", "0.6935366", "0.6935366", ...
0.7543827
0
Shows previous entry of the history in the input text field.
private void prevHistoryEntry() { if (this.historyPos > 0) { this.historyPos--; this.textInput.setText(this.history.get(this.historyPos)); this.textInput.setSelection(this.history.get(this.historyPos).length()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void nextHistoryEntry()\n {\n // get next history entry (into input text field)\n if (this.historyPos < this.history.size()) {\n this.historyPos++;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(...
[ "0.754141", "0.7192169", "0.6794337", "0.676742", "0.66804016", "0.6621354", "0.6574873", "0.64633805", "0.6387667", "0.63075924", "0.622516", "0.6224195", "0.62118167", "0.62090486", "0.6207611", "0.62067884", "0.6168503", "0.6163724", "0.6132133", "0.6082677", "0.6075228", ...
0.8687755
0
Shows next entry of the history in the input text field.
private void nextHistoryEntry() { // get next history entry (into input text field) if (this.historyPos < this.history.size()) { this.historyPos++; this.textInput.setText(this.history.get(this.historyPos)); this.textInput.setSelection(this.history.get(this.histor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }", "@Override\r\n\t\tpublic vo...
[ "0.7230929", "0.6441304", "0.6081629", "0.6068448", "0.6013066", "0.60027933", "0.5826967", "0.56967664", "0.5658827", "0.5637143", "0.5575596", "0.5572783", "0.55724937", "0.5567776", "0.55649716", "0.5562032", "0.55602616", "0.5555334", "0.5541779", "0.5499741", "0.5469877"...
0.85822225
0
If the shell is closed this instance must be removed as listener from workspace preference change events.
@Override public void dispose() { ShellPreference.removeListener(this); super.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void componentClosed() {\n WindowManager.getDefault().getRegistry().removePropertyChangeListener(this);\n }", "public void connectionClosed(ShellLaunchEvent ev);", "@Override\n protected void onDestroy() {\n super.onDestroy();\n PreferenceManager.getDefaultSh...
[ "0.6298727", "0.6293062", "0.6201542", "0.618487", "0.59730625", "0.5794069", "0.57929707", "0.5721132", "0.5664826", "0.5634318", "0.5616508", "0.5603801", "0.55885917", "0.5565001", "0.5565001", "0.55463046", "0.5508145", "0.5508145", "0.5498934", "0.5498934", "0.5498934", ...
0.7381761
0
Increment the gcelapsedtime counter.
private void incrementGcCounter() { if (null == PSAgentContext.get().getMetrics()) { return; // nothing to do. } long elapsedGc = getElapsedGc(); long totalGc = 0; String gc_time = PSAgentContext.get().getMetrics().get(AngelCounter.GC_TIME_MILLIS); if (gc_time != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized static void incrementTime() {\n\t\ttime += 1;\n\t}", "public void IncTimeInProc() {\n this.TimeInProc++;\n }", "public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }", "public void In...
[ "0.7501085", "0.6635549", "0.6427003", "0.6402084", "0.6364263", "0.631706", "0.63020086", "0.62721246", "0.6247416", "0.6169251", "0.6150908", "0.61263806", "0.61010635", "0.60933024", "0.6078851", "0.6073767", "0.6064377", "0.6030418", "0.60149556", "0.60077137", "0.5993193...
0.719631
1
Update generic resource counters
@SuppressWarnings("deprecation") private void updateResourceCounters() { updateHeapUsageCounter(); // Updating resources specified in ResourceCalculatorProcessTree if (pTree == null) { return; } pTree.updateProcessTree(); long cpuTime = pTree.getCumulativeCpuTime(); long pMem = pTre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}", "IntegerResource tracking();", "@Override\r\n\tpublic void update(Resources resources) {\n\t\t\r\...
[ "0.6657983", "0.6651649", "0.6484497", "0.64453566", "0.64173037", "0.5984122", "0.5981027", "0.5961253", "0.59451073", "0.5892365", "0.5883167", "0.58618265", "0.5820195", "0.5818474", "0.5786116", "0.5769103", "0.5765238", "0.5747957", "0.5737181", "0.5715037", "0.5712374",...
0.72976387
0
Created by Long on 10/5/2016.
public interface ResumeHolderFactory { BaseViewHolder createHolder(int type, View view); int getType(RepoVM repoVM); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overri...
[ "0.5990709", "0.59514517", "0.5778579", "0.57671875", "0.57384014", "0.57275265", "0.57106656", "0.5698785", "0.5698785", "0.5684802", "0.56297714", "0.56283534", "0.560129", "0.5566152", "0.5556229", "0.55524737", "0.5547621", "0.55363566", "0.5528607", "0.5526256", "0.55213...
0.0
-1
private dS = PixShooter.downScale();
public DebugOverlay(SpriteBatch sb) { viewport = new FitViewport(PixClient.V_WIDTH, PixClient.V_HEIGHT, new OrthographicCamera()); labels = new Label[labelCount]; stage = new Stage(viewport, sb); Table table = new Table(); table.bottom().right(); table.setHeight(300)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ScaleEntityDownAction(){\r\n\t\tscaleFactor = 0.1f;\r\n\t}", "public double getScaleY() { return _rss==null? 1 : _rss.scaleY; }", "int getScale();", "public int getScale(){\n return scale;\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScal...
[ "0.64877874", "0.6306889", "0.6135062", "0.608738", "0.5968652", "0.5923094", "0.5921222", "0.590204", "0.5897427", "0.58567995", "0.58197933", "0.57783026", "0.5726461", "0.57256436", "0.5702567", "0.5697677", "0.56770223", "0.5674809", "0.5667699", "0.56655115", "0.5654143"...
0.0
-1
/ Copy constructor (deep copy)
public WGraph_DS(WGraph_DS other) { nodes = new HashMap<>(); for(node_info n: other.getNodes().values()) { this.getNodes().put(n.getKey(), n); } this.edge_size = other.edge_size; this.mc = other.mc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "Prototype makeCopy();", "Component deepClone();", "public T cloneDeep();", "public Clone() {}", "Object clone();", "Object clone();", "protected Factorization copy(){\n Factorization newFactor = new Factorization(this.mdc);\n //shallow copy\...
[ "0.78432244", "0.74296844", "0.72933096", "0.7175962", "0.71531576", "0.7105618", "0.7105618", "0.700036", "0.6941321", "0.6786523", "0.6772543", "0.67449045", "0.67390406", "0.67038697", "0.66658545", "0.6641298", "0.6637258", "0.66294056", "0.66294056", "0.66294056", "0.662...
0.0
-1
/ use get method of the HashMap
public node_info getNode(int key) { return getNodes().get(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V get(Object key) { return _map.get(key); }", "@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}", "public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}", "public static void getHashMapValues() {\n\t\tMap<Integer, String> map = createHashMap();\n\t\t\n\t\t//Get value f...
[ "0.73559666", "0.71941084", "0.7073003", "0.689585", "0.682656", "0.68017375", "0.67371583", "0.67180157", "0.6687092", "0.6667486", "0.6667486", "0.6632638", "0.6586656", "0.6529954", "0.646972", "0.63895273", "0.6364163", "0.6354234", "0.635024", "0.6346765", "0.6338576", ...
0.0
-1
/ use hahNi method from Node class , check in the Ni HashMap if the edge exist
public boolean hasEdge(int node1, int node2) { Node s=(Node)this.getNodes().get(node1); return s.hasNi(node2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "public boolean hasNi(int nodeKey) {\n return this.neighborEdges.get(nodeKey) != null ? true : false;\n }", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMa...
[ "0.67393225", "0.66660994", "0.65117514", "0.6481158", "0.6338951", "0.6194047", "0.6161394", "0.6158513", "0.61424047", "0.6130135", "0.61249703", "0.61128247", "0.60438174", "0.60423094", "0.60421145", "0.6037614", "0.59757817", "0.59741086", "0.59617233", "0.59339017", "0....
0.668496
1
/ if the graph contains the node1 and node 2 we can check in Ni of node1 and if his key is node 2 Remember the key of Ni HashMap is the key of the destination node of the edge !
public double getEdge(int node1, int node2) { if(getNodes().containsKey(node1) && getNodes().containsKey(node2)) { Node s=(Node) getNodes().get(node1); if(s.getEdgesOf().containsKey(node2)) { return s.getEdgesOf().get(node2).get_weight(); } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n ...
[ "0.65859205", "0.6505213", "0.6381745", "0.6331321", "0.6295936", "0.609331", "0.60725236", "0.60357153", "0.60342807", "0.6016219", "0.59981793", "0.5983013", "0.59654534", "0.5959874", "0.59580886", "0.59556353", "0.59306043", "0.5920326", "0.5918869", "0.5884705", "0.58801...
0.6121648
5
/ Add a vertex to the HashMap (if it not exist)
public void addNode(int key) { Node n1 = new Node(key); if(!getNodes().containsKey(n1.getKey())) { mc++; this.getNodes().put(n1.getKey(),n1); } else { return; //System.out.println("Node already in the graph"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addVertex(Vertex vertex) {\n if (!this.verticesAndTheirEdges.containsKey(vertex)) {\n this.verticesAndTheirEdges.put(vertex, new LinkedList<>());\n } else {\n System.out.println(\"Vertex already exists in map.\");\n }\n }", "@Override\r\n public void ...
[ "0.8108342", "0.7805506", "0.7747441", "0.7360481", "0.73558617", "0.7211698", "0.7208669", "0.71827924", "0.7153566", "0.7102607", "0.7079414", "0.706782", "0.7038455", "0.7022937", "0.7022937", "0.69479823", "0.68692017", "0.6857767", "0.6813282", "0.6792995", "0.67905456",...
0.0
-1
/ connect and edge between node1 and node2 , with an edge with weight if the edge already exists , the method simply update the weight of the edge.
public void connect(int node1, int node2, double w) { if(getNodes().containsKey(node1) && getNodes().containsKey(node2) && (node1 != node2)) { Node n1 = (Node)getNodes().get(node1); Node n2 = (Node)getNodes().get(node2); if(!n1.hasNi(node2)&&!n2.hasNi(node1)) { Edge e=new Edge(w,node1,node2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean addEdge(Node node1, Node node2, int weight);", "void addEdge(int source, int destination, int weight);", "public void addEdge(Node n1, Node n2, int weight) {\n\t\tthis.edges.add(new Edge(n1, n2, weight));\n\t\tadjacencyList.get(n1.getIdNode()).add(new NodePair(n2.getIdNode(), weight));\...
[ "0.79750603", "0.75583583", "0.73807836", "0.72718966", "0.72290236", "0.71487653", "0.7147279", "0.7100703", "0.7053514", "0.7037182", "0.69610524", "0.6942381", "0.6929586", "0.69280106", "0.6917264", "0.6887745", "0.68817955", "0.6879906", "0.68557", "0.6816659", "0.681137...
0.8142787
0
/ Return all the nodes in the HashMap
public Collection<node_info> getV() { return this.getNodes().values(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "@Overr...
[ "0.75570107", "0.73049015", "0.7259343", "0.7149731", "0.7072454", "0.6933952", "0.6922198", "0.6867248", "0.6845555", "0.6836423", "0.68361783", "0.6782311", "0.6639373", "0.66036904", "0.64842516", "0.64825577", "0.6480279", "0.64356107", "0.6434999", "0.64302444", "0.64154...
0.619692
37
/ Return all the node_info that come out from this vertex (using the HashMap of this vertex).
public Collection<node_info> getV(int node_id) { Collection<node_info> list=new ArrayList<node_info>(); if(getNodes().containsKey(node_id)) { Node m=(Node)this.getNodes().get(node_id); if(!m.getEdgesOf().isEmpty() ) { for(int key: m.getEdgesOf().keySet()) { node_info z=getNode( key) ; list.add(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "public void getInfo() {\n System.out.println(\"INFO Node : \"+address+ \" connected to nodes \");\n for(Node node : getConnectedNodes()){\n System.out.print(\"N...
[ "0.67436534", "0.6592832", "0.65707016", "0.65593684", "0.6490279", "0.64391255", "0.64111584", "0.62156785", "0.62024397", "0.6196102", "0.6139879", "0.6128344", "0.6087003", "0.6071857", "0.60646003", "0.605723", "0.60562044", "0.605227", "0.60182655", "0.59917045", "0.5970...
0.63726366
7
/ To remove a node we need to find all edges that connect to it. So the fast way is to check which node is edge of the removeNode and after delete from their hash_map this node. After deleting every edge, we remove the node and update the counters.
public node_info removeNode(int key) { if(getNodes().containsKey(key)) { Node n=(Node)getNode(key); List <Integer> m=n.getNi_k(); if(m!=null) { for(int i=0;i<m.size();i++) { int z=m.get(i); Node h=(Node)getNode(z); h.removeNode(n); edge_size--; mc++...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public node_data removeNode(int key) {\r\n// if(this.graph.containsKey(key)){\r\n// //while - all the node toward him\r\n// if(this.neighbors.get(key) != null){\r\n// ArrayList<edge_data> ni = new ArrayList<edge_data>(this.neighbors.get(key).values()); /...
[ "0.6846556", "0.66368157", "0.6599232", "0.65549195", "0.64710325", "0.64689964", "0.64305794", "0.63713735", "0.63599586", "0.6333129", "0.6322907", "0.6316201", "0.6191097", "0.61727417", "0.61262363", "0.610431", "0.6074943", "0.6025408", "0.6017604", "0.6000801", "0.59874...
0.62746507
12
/ To remove an edge we need to find the source node and check if contains the destination in it's HashMap of edges node1 = The node of the source node2 = The node of the dest
public void removeEdge(int node1, int node2) { if(getNodes().containsKey(node1) && getNodes().containsKey(node2)) { Node n1 = (Node) getNodes().get(node1); Node n2 = (Node) getNodes().get(node2); if(n1.getEdgesOf().containsKey(node2)) { edge_size--; mc++; n1.getEdgesOf().remove(node2); } if(n2....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteEdge(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest)) {\r\n\t\t\t\tv.adjacent.remove(edge);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\...
[ "0.75740784", "0.74636334", "0.7389449", "0.71872586", "0.7134455", "0.7129233", "0.69454044", "0.69260633", "0.69139874", "0.6910077", "0.6826971", "0.6823037", "0.68208265", "0.6800336", "0.6752877", "0.6734973", "0.66623", "0.6650722", "0.65973306", "0.6585852", "0.6553806...
0.7784842
0
/ Return all the edges that come out from this vertex (using the HashMap of this vertex).
public Collection<Edge> getE(int node_id) { Collection<Edge> list=new ArrayList<Edge>(); if(getNodes().containsKey(node_id)) { Node n=(Node) getNodes().get(node_id); list.addAll(n.getEdgesOf().values()); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Collection<IEdge<S>> getEdges()\n\t{\n\t\tfinal List<IEdge<S>> set = new ArrayList<>(map.size());\n\t\tfor (final Entry<S, Integer> entry : map.entrySet())\n\t\t{\n\t\t\tset.add(createEdge(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(set);\n\t}", ...
[ "0.75808024", "0.75000757", "0.7476098", "0.73911464", "0.7343934", "0.72885776", "0.7280025", "0.72197306", "0.7161359", "0.71592027", "0.712976", "0.7117119", "0.71117073", "0.70708895", "0.705582", "0.70486313", "0.7042324", "0.7008303", "0.70058686", "0.6998256", "0.69034...
0.6596639
43
/ Getters and Setters
public int nodeSize() { return getNodes().size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setdat()\n {\n }", "public void get() {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", ...
[ "0.6793725", "0.66366845", "0.65605664", "0.6458844", "0.62827885", "0.62158823", "0.6172911", "0.6113601", "0.6080991", "0.6030207", "0.6002496", "0.5975091", "0.5970083", "0.5950412", "0.5937579", "0.5934836", "0.59142685", "0.58957744", "0.58908737", "0.5822043", "0.581260...
0.0
-1
Log error here since request failed progressDialog.dismiss();
@Override public void onFailure(Call<Menumodel> call, Throwable t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\r\n\r\n //and displaying error message\r\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LE...
[ "0.7572542", "0.75611436", "0.7463531", "0.74312544", "0.74312544", "0.74312544", "0.74312544", "0.74312544", "0.73912585", "0.7377211", "0.7346898", "0.7330411", "0.73210925", "0.7299958", "0.72988755", "0.7217551", "0.72157454", "0.7208117", "0.7184364", "0.7176717", "0.717...
0.0
-1
Returns the Team of the Spymaster
public String getTeam() { return Team; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Team getMyTeam();", "public Team getTeam() {\r\n\t\treturn team;\r\n\t}", "public Team getTeam() {\n return team;\n }", "@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}", "public String getTeam() {\n return team;\n }", "public String getTeam() {\n\t\treturn team;\n\t...
[ "0.769413", "0.76687294", "0.7658551", "0.7657227", "0.76129264", "0.7587115", "0.756079", "0.7381809", "0.7330531", "0.7321815", "0.7299991", "0.72619766", "0.7227278", "0.7210867", "0.71743596", "0.71643156", "0.71121746", "0.7098142", "0.70245546", "0.70220774", "0.7005796...
0.76988286
0
Set's the team of the Spymaster.
public void setTeam(String team) { Team = team; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}", "@Override\n\tpublic void setHomeTeam() {\n\t\t\n\t}", "public void setTeam(String team) {\n\t\tthis.teamOfPlayer = team;\n\t}", "public void setTeam(String team) {\n\t\tthis.team = team;\n\t}", "void setWinningTeam(TeamId winner) {\n ...
[ "0.74745953", "0.71552664", "0.71374506", "0.70705503", "0.7068684", "0.6936859", "0.6911863", "0.6787061", "0.67551106", "0.66507566", "0.65975475", "0.6596164", "0.65765727", "0.65694696", "0.6521587", "0.65116566", "0.6463737", "0.6460537", "0.64105237", "0.64079136", "0.6...
0.7412197
1
Takes the ArrayList generated by the main method as input Sorts ISBNs and ratings according to increasing userID
public static void userSort(ArrayList<String>list) throws FileNotFoundException{ Collections.sort(list, new Comparator<String>(){ @Override public int compare(String o1, String o2) { // TODO Auto-generated method stub //Take the first string, split according to ";", and store in an arraylist S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortRating()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getRating().compareTo(b.getRatin...
[ "0.6582191", "0.62344146", "0.61002123", "0.59919447", "0.59846985", "0.59035254", "0.5851632", "0.58148426", "0.58077216", "0.57064164", "0.569726", "0.56725657", "0.5644207", "0.56333685", "0.5628843", "0.55793417", "0.55720073", "0.55375355", "0.55246115", "0.55195075", "0...
0.5657262
12
TODO Autogenerated method stub Take the first string, split according to ";", and store in an arraylist
@Override public int compare(String o1, String o2) { String[] values = o1.split(";"); //Take the second string and do the same thing String[] values2 = o2.split(";"); //Compare strings according to their integer values return Integer.valueOf(values[0].replace("\"", "")).compareTo(Integer.val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList parseStringToList(String data){\n ArrayList<String> result = new ArrayList<String>();\n String[] splitResult = data.split(\",\");\n for(String substring : splitResult){\n result.add(substring);\n }\n return result;\n }", "private static ArrayList...
[ "0.71001416", "0.66897255", "0.6677861", "0.6380534", "0.63663286", "0.6265648", "0.6166175", "0.60785013", "0.6053837", "0.59970635", "0.59922427", "0.5975938", "0.5923706", "0.5883734", "0.5798173", "0.57930475", "0.5790704", "0.57874817", "0.57018626", "0.56916463", "0.568...
0.0
-1
Constructs a heap file backed by the specified file.
public HeapFile(File f, TupleDesc td) { this.file = f; this.tableId = f.getAbsoluteFile().hashCode(); this.td = td; int pageSize = BufferPool.PAGE_SIZE; int pagesNeeded; RandomAccessFile rf; try { rf = new RandomAccessFile(f, "r"); pagesNe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HeapFile(File f, TupleDesc td) {\n this.tupleDesc = td;\n this.file = f;\n this.fid = file.getAbsoluteFile().hashCode();\n this.numOfPages = (int)Math.ceil((double)f.length()/(double)BufferPool.PAGE_SIZE);\n if(f.length()==0) \n//\t\t\ttry {\n//\t\t\t\twritePage(new HeapPa...
[ "0.73114914", "0.64279467", "0.63520277", "0.5750058", "0.56212986", "0.56124806", "0.5534635", "0.5520137", "0.551143", "0.5422604", "0.5368089", "0.5329247", "0.5242094", "0.52396184", "0.5219292", "0.5209714", "0.51496303", "0.51125616", "0.5087932", "0.5081666", "0.507617...
0.7299282
1
Returns the File backing this HeapFile on disk.
public File getFile() { return file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getFile() {\n return new File(this.filePath);\n }", "public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }", "public File getFile() {\n\t\treturn new File(filepath);\n\t}", "public File getFile() {\n // some code goes here\n return m_f;\n ...
[ "0.7422588", "0.7262804", "0.7245409", "0.7108783", "0.7032323", "0.6941597", "0.69338095", "0.6925529", "0.6890767", "0.68727005", "0.6866185", "0.6866185", "0.68551356", "0.68325627", "0.68270403", "0.6801857", "0.6794834", "0.67799765", "0.67642546", "0.66975546", "0.66953...
0.68461514
15
Returns an ID uniquely identifying this HeapFile. Implementation note: you will need to generate this tableid somewhere ensure that each HeapFile has a "unique id," and that you always return the same value for a particular HeapFile. We suggest hashing the absolute file name of the file underlying the heapfile, i.e. f....
public int getId() { return tableId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }", "public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }", "public int getId() {\n //...
[ "0.75548935", "0.7451884", "0.7228318", "0.6545361", "0.63371295", "0.61235446", "0.6069864", "0.5955612", "0.59480953", "0.59382564", "0.59286755", "0.59286755", "0.58868384", "0.5835929", "0.58357257", "0.5814877", "0.58024985", "0.58024985", "0.58024985", "0.5757726", "0.5...
0.5346214
50
Returns the TupleDesc of the table stored in this DbFile.
public TupleDesc getTupleDesc() { return td; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TupleDesc getTupleDesc() {\n // some code goes here\n return td;\n }", "@Override\n\t\tpublic TupleDesc getTupleDesc() {\n\t\t\treturn td;\n\t\t}", "public TupleDesc getTupleDesc() {\n // some code goes here\n \treturn m_td;\n }", "public TupleDesc getTupleDesc() {\n ...
[ "0.74475163", "0.7431344", "0.7371933", "0.71620256", "0.71397096", "0.71138537", "0.6741291", "0.65075934", "0.6456192", "0.631427", "0.6134392", "0.60476315", "0.59718055", "0.59120697", "0.5890592", "0.5845741", "0.58157367", "0.57803476", "0.57779574", "0.57536817", "0.57...
0.7471167
0
see DbFile.java for javadocs
public Page readPage(PageId pid) { // some code goes here return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getInputDb();", "public File getOutputDb();", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder...
[ "0.75162673", "0.7207716", "0.6856582", "0.63214904", "0.61810434", "0.6109898", "0.6099357", "0.60643154", "0.59978586", "0.5979398", "0.5952094", "0.5903999", "0.58972645", "0.585271", "0.5846257", "0.5809899", "0.58018017", "0.57985026", "0.57965136", "0.5771401", "0.57699...
0.0
-1
see DbFile.java for javadocs
public void writePage(Page page) throws IOException { // some code goes here // not necessary for lab1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getInputDb();", "public File getOutputDb();", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder...
[ "0.75162673", "0.7207716", "0.6856582", "0.63214904", "0.61810434", "0.6109898", "0.6099357", "0.60643154", "0.59978586", "0.5979398", "0.5952094", "0.5903999", "0.58972645", "0.585271", "0.5846257", "0.5809899", "0.58018017", "0.57985026", "0.57965136", "0.5771401", "0.57699...
0.0
-1
Returns the number of pages in this HeapFile.
public int numPages() { return numPages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / Buffe...
[ "0.8259953", "0.8042251", "0.79182535", "0.7674561", "0.73869544", "0.71135765", "0.703156", "0.6988106", "0.6967693", "0.6935015", "0.6881559", "0.68292326", "0.67702454", "0.6768808", "0.67416036", "0.67411995", "0.67388976", "0.6730148", "0.67280644", "0.6727937", "0.67100...
0.73827004
5
see DbFile.java for javadocs
public ArrayList<Page> insertTuple(TransactionId tid, Tuple t) throws DbException, IOException, TransactionAbortedException { // some code goes here return null; // not necessary for lab1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getInputDb();", "public File getOutputDb();", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder...
[ "0.75157964", "0.7207134", "0.68569815", "0.63199925", "0.6181427", "0.6111812", "0.6099201", "0.60644037", "0.59969676", "0.5979249", "0.5952778", "0.59035164", "0.58971214", "0.58509666", "0.5845584", "0.58102745", "0.5803401", "0.5799259", "0.57971716", "0.57711357", "0.57...
0.0
-1
see DbFile.java for javadocs
public ArrayList<Page> deleteTuple(TransactionId tid, Tuple t) throws DbException, TransactionAbortedException { // some code goes here return null; // not necessary for lab1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getInputDb();", "public File getOutputDb();", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder...
[ "0.75162673", "0.7207716", "0.6856582", "0.63214904", "0.61810434", "0.6109898", "0.6099357", "0.60643154", "0.59978586", "0.5979398", "0.5952094", "0.5903999", "0.58972645", "0.585271", "0.5846257", "0.5809899", "0.58018017", "0.57985026", "0.57965136", "0.5771401", "0.57699...
0.0
-1
see DbFile.java for javadocs
public DbFileIterator iterator(TransactionId tid) { System.out.println("numPages is " + numPages); return new TupleIter(numPages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getInputDb();", "public File getOutputDb();", "private String getFileTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table FILE(\");\n \t\tbuilder.append(\"FILE_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"FILE_PATH TEXT,\");\n \t\tbuilder...
[ "0.75162673", "0.7207716", "0.6856582", "0.63214904", "0.61810434", "0.6109898", "0.6099357", "0.60643154", "0.59978586", "0.5979398", "0.5952094", "0.5903999", "0.58972645", "0.585271", "0.5846257", "0.5809899", "0.58018017", "0.57985026", "0.57965136", "0.5771401", "0.57699...
0.0
-1
Creates new form MainFrame
public MainFrame() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(ic...
[ "0.7866579", "0.77944225", "0.772502", "0.7701847", "0.7630211", "0.76181847", "0.7527362", "0.7495771", "0.7302958", "0.72932607", "0.7249109", "0.72449845", "0.722655", "0.7208675", "0.71687025", "0.7150071", "0.7141473", "0.712708", "0.7108041", "0.7081051", "0.70746195", ...
0.7677743
13
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { pnlChart = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
dataset.addValue(350, row, "97"); dataset.addValue(450, row, "98"); dataset.addValue(500, row, "99"); dataset.addValue(340, row, "00"); dataset.addValue(180, row, "01"); dataset.addValue(550, row, "02"); dataset.addValue(450, row, "03"); dataset.addValue(600, row, "04"); dataset.addValue(750, row, "05"); dataset.addVal...
public JFreeChart createChart(CategoryDataset dataset) { CategoryAxis categoryAxis = new CategoryAxis(""); ValueAxis valueAxis = new NumberAxis(""); valueAxis.setVisible(false); BarRenderer renderer = new BarRenderer() { @Override public Paint getItemPaint(int ro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<Point> createIncreasingDecreasingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 900);\r\n add(data, 25, 700);\r\n ...
[ "0.65186065", "0.633837", "0.62506354", "0.61099076", "0.5944611", "0.58490235", "0.5823031", "0.5790686", "0.5777427", "0.57481533", "0.5715191", "0.57129395", "0.5661473", "0.5617056", "0.56163156", "0.56108683", "0.5576025", "0.55614954", "0.55612475", "0.55582845", "0.554...
0.0
-1
Sign Up button functionality
private void signupOnClickFunctionality(){ final TextView tvSign = findViewById(R.id.sign); tvSign.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent2 = new Intent(getApplicationContext(), signUp.class); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please ...
[ "0.8306161", "0.8117228", "0.8094785", "0.7888104", "0.77760553", "0.7737845", "0.7675774", "0.7675759", "0.76736015", "0.76274115", "0.75272244", "0.75124544", "0.74734676", "0.74501103", "0.74157274", "0.7397581", "0.7392648", "0.7259994", "0.7252827", "0.7234414", "0.72135...
0.66938925
72
Simple method that sets the IDs.
public void setIds(String ids) { this.ids = ids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\...
[ "0.7761742", "0.7413711", "0.7382259", "0.7330293", "0.7227508", "0.7216646", "0.71600556", "0.710794", "0.710794", "0.710794", "0.710794", "0.710794", "0.710794", "0.710794", "0.70044124", "0.69888675", "0.69761205", "0.69475806", "0.69428027", "0.69183517", "0.6900599", "...
0.6729957
55
GET method for retrieving the IDs.
public String getIds() { return this.ids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllIds();", "List<String> findAllIds();", "@GetMapping(\"/all/id\")\n public List<String> getAllId(){\n return productService.getAllId();\n }", "public java.util.List<String> getIds() {\n return ids;\n }", "public String getIds() {\n return ids;\n }", "publ...
[ "0.767016", "0.72247803", "0.68549055", "0.67011374", "0.6658192", "0.6658192", "0.6645274", "0.66244817", "0.6613459", "0.64057994", "0.63934445", "0.6309862", "0.625677", "0.6249408", "0.6147972", "0.6118773", "0.61062723", "0.6096536", "0.60864526", "0.6082552", "0.6072681...
0.6680068
4
method to set the password.
public void setPasswords(String passwords) { this.passwords = passwords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String pass);", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword...
[ "0.8758736", "0.8758736", "0.8758736", "0.8593931", "0.8556607", "0.8531686", "0.838568", "0.8369787", "0.8338932", "0.8277033", "0.81953186", "0.8137883", "0.81012124", "0.8070803", "0.80599165", "0.8022297", "0.80197275", "0.80197275", "0.8015077", "0.80059683", "0.8004163"...
0.0
-1
Method to get the passwords.
public String getPasswords() { return this.passwords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private char[] getPass()\n {\n return password.getPassword();\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang...
[ "0.7564524", "0.7537597", "0.7537597", "0.7537597", "0.7537597", "0.7537597", "0.7537597", "0.7537597", "0.7445457", "0.7402864", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7363027", "0.7331225", "0.7320051", "...
0.7842381
0
Get list of white pix touching, for each call discover
public static void discover(int[] pixel){ disc[pixel[0]][pixel[1]]=1; //Mark pixel disc ArrayList<int[]> adjWhitePix = getAdjWhitePix(I, pixel); while(adjWhitePix.size()>0){ int[] neighbor = adjWhitePix.get(0); adjWhitePix.remove(0); if(finished[neighbor[0]][neighbor[1]]==0){ discover(nei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addpixeltoList() {\n for (int i = 0; i < 100; i++) {\r\n pixellist.add(new humanpixel());\r\n }\r\n }", "public static IPoint2[] calcHotPixels(Segment[] s, BlackBox blackBox,\n DArray hpList) {\n Map m = new HashMap();\n\n final boolean db = false;\n\n if (db...
[ "0.5860578", "0.5711692", "0.5259159", "0.5241428", "0.522875", "0.52102745", "0.5191157", "0.51674956", "0.5142841", "0.5142202", "0.5135215", "0.5134453", "0.5122449", "0.51189476", "0.51164716", "0.5099927", "0.5088511", "0.50781626", "0.5054222", "0.5047548", "0.5034372",...
0.5765579
1
This is based on the recommendation for the singleton pattern from : Double checking singleton getInstance method.
public static DBManager getInstance() { DBManager current = db; // fast check to see if already created if (current == null) { // sync so not more then one creates it synchronized (DBManager.class) { current = db; // check if between first ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingletonDoubleCheck() {}", "public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n...
[ "0.8274608", "0.76469135", "0.76245445", "0.76037234", "0.75410885", "0.74729896", "0.74145156", "0.7413178", "0.7411979", "0.74072963", "0.73922765", "0.7357472", "0.7293718", "0.7242716", "0.72293806", "0.7189628", "0.7142527", "0.7137515", "0.7133451", "0.7125878", "0.7123...
0.0
-1
list of files, each file has one image
public Game(){ // you can of course add more or change this setup completely. You are totally free to also use just Strings in your Server class instead of this class won = true; // setting it to true, since then in newGame() a new image will be created files.add("pig.txt"); files.add("s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageFiles() {\n\t\tthis.listOne = new ArrayList<String>();\n\t\tthis.listTwo = new ArrayList<String>();\n\t\tthis.listThree = new ArrayList<String>();\n\t\tthis.seenImages = new ArrayList<String>();\n\t\tthis.unseenImages = new ArrayList<String>();\n\t}", "public void listPictures()\r\n {\r\n i...
[ "0.73683196", "0.69815266", "0.6837145", "0.67402357", "0.67095214", "0.67026037", "0.66198635", "0.65602857", "0.64591664", "0.63910747", "0.6378348", "0.63678366", "0.63552797", "0.6354179", "0.62834024", "0.62755847", "0.6234258", "0.6222922", "0.62094116", "0.62033397", "...
0.0
-1
Sets the won flag to true
public void setWon(){ won = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}", "public void setGameWon(Boolean won){\n\t\tm_gameWon = won;\n\t}", "public void winGame() {\n this.isWinner = true;\n }", "public void setWins() {\r\n this.wins++;\r\n }", "public boolean gameWon(){\n\t\treturn Game.gameWon;\n\t}", ...
[ "0.82891035", "0.801888", "0.78327745", "0.7628763", "0.72977954", "0.7260962", "0.72167546", "0.71871406", "0.7179102", "0.7176184", "0.71738774", "0.70762956", "0.7071565", "0.70672464", "0.70617425", "0.70490164", "0.70344603", "0.69090307", "0.68874025", "0.6867833", "0.6...
0.85130614
0
Method loads in a new image from the specified files and creates the hidden image for it.
public void newGame(){ if (won) { idx = 0; won = false; List<String> rows = new ArrayList<String>(); try{ // loads one random image from list Random rand = new Random(); col = 0; int randInt = rand...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";...
[ "0.6472558", "0.6312412", "0.62615335", "0.6231831", "0.61610556", "0.6156648", "0.6129977", "0.6034828", "0.59959334", "0.59590894", "0.5923219", "0.58885705", "0.58821875", "0.58724844", "0.5855191", "0.5848283", "0.5847585", "0.5837213", "0.5835972", "0.5813308", "0.581227...
0.54847866
56
Method returns the String of the current hidden image
public String getImage(){ StringBuilder sb = new StringBuilder(); for (char[] subArray : hidden) { sb.append(subArray); sb.append("\n"); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getImage();", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public Image getShowImage() {\n\t\treturn showImage;\n\t}", "String getImage();", "public String getImageString() {\n retur...
[ "0.68966496", "0.6674736", "0.66587216", "0.65875924", "0.65851116", "0.65400565", "0.6502507", "0.64836043", "0.6482127", "0.6482127", "0.645621", "0.6444016", "0.6435671", "0.64035493", "0.6356474", "0.63323396", "0.63323396", "0.63323396", "0.63323396", "0.63222486", "0.63...
0.7668725
0
Method changes the next idx of the hidden image to the character in the original image You can change this method if you want to turn more than one x to the original
public String replaceOneCharacter() { int colNumber = idx%col; int rowNumber = idx/col; hidden[rowNumber][colNumber] = original[rowNumber][colNumber]; idx++; return(getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 ...
[ "0.6001071", "0.5709833", "0.569863", "0.55183333", "0.54265803", "0.5388177", "0.53675985", "0.53640926", "0.5345035", "0.53412163", "0.53276926", "0.5305277", "0.5303858", "0.5288589", "0.52764326", "0.5273455", "0.52572876", "0.5236298", "0.5211684", "0.513238", "0.5119324...
0.7525301
0
Constructs an instance of administration command executor using REST interface.
public RunnerRestDeploy(final GlassFishServer server, final Command command) { super(server, command); this.command = (CommandDeploy)command; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AdminConsole createAdminConsole();", "public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public interface AdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.jacorb.imr...
[ "0.6566502", "0.5853037", "0.58432096", "0.5773263", "0.56634325", "0.5643438", "0.55849314", "0.5571009", "0.55410033", "0.5526731", "0.5526185", "0.5515002", "0.55028325", "0.54761946", "0.54568815", "0.54540193", "0.5406124", "0.5391616", "0.5350725", "0.5323377", "0.53202...
0.0
-1
////////////////////////////////////////////////////////////////////////// Implemented Abstract Methods // //////////////////////////////////////////////////////////////////////////
@Override protected void prepareHttpConnection(HttpURLConnection conn) throws CommandException { super.prepareHttpConnection(conn); if (!command.dirDeploy) { conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + multipartBoundary); } }
{ "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\n protected void prot() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}"...
[ "0.69921184", "0.68098074", "0.6718831", "0.6630493", "0.66108936", "0.65745", "0.6562973", "0.6562973", "0.656156", "0.656156", "0.65302294", "0.6422216", "0.6393812", "0.6388765", "0.6343903", "0.63372785", "0.6314556", "0.6291998", "0.627105", "0.627105", "0.6257094", "0...
0.0
-1
Handle sending data to server using HTTP command interface. This is based on reading the code of CLIRemoteCommand.java from the server's code repository. Since some asadmin commands need to send multiple files, the server assumes the input is a ZIP stream.
@Override protected void handleSend(HttpURLConnection hconn) throws IOException { //InputStream istream = getInputStream(); if (command.path == null) { throw new GlassFishIdeException("The path attribute of deploy command" + " has to be non-empty!"); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tString masterIP = args[0];\n\n\t\ttry {\n\t\t\tsock = new DatagramSocket(Machine.FILE_OPERATIONS_PORT);\n\t\t} catch (SocketException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tmyName = Ine...
[ "0.5909409", "0.5812701", "0.5796942", "0.5795299", "0.5793544", "0.577504", "0.5747905", "0.5708055", "0.5687653", "0.5595982", "0.559465", "0.5544576", "0.5529245", "0.5522722", "0.5500536", "0.5496574", "0.5459838", "0.5457217", "0.5451332", "0.54454136", "0.544333", "0....
0.65271187
0
////////////////////////////////////////////////////////////////////////// Fake Getters // ////////////////////////////////////////////////////////////////////////// Set the contenttype of information sent to the server. Returns application/zip for file deployment and null (not set) for directory deployment.
@Override public String getContentType() { return command.dirDeploy ? null : "application/zip"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String getContentType() {\n return \"application/octet-stream\";\n }", "String getContentType();", "String getContentType();", "String getContentType();", "public String getContentType();", "public String getContentType();", "public boolean handles(String contentType, String packaging...
[ "0.72966695", "0.6505842", "0.6505842", "0.6505842", "0.64589846", "0.64589846", "0.63222146", "0.6290625", "0.6254106", "0.6254106", "0.6237189", "0.62068367", "0.6176972", "0.61739373", "0.6153724", "0.6149851", "0.6149851", "0.6149851", "0.614804", "0.61423194", "0.6099519...
0.8528282
0
Created by Taras 21.01.2018, 16:40.
public interface ArticleClient { @GET("v2/top-headlines?apiKey=" + BuildConfig.api_key) Call<ArticleResponse> getArticles(@Query("country") String country, @Query("category") String category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\...
[ "0.56771207", "0.56557363", "0.56067234", "0.5496964", "0.5435281", "0.53996897", "0.5378001", "0.534492", "0.53125495", "0.53125495", "0.5277547", "0.526331", "0.5260312", "0.5254016", "0.5250287", "0.52161837", "0.5202831", "0.5202831", "0.52012557", "0.51911056", "0.518654...
0.0
-1
Start typing your Java solution below DO NOT write main() function
public int lengthOfLongestSubstring(String s) { int l=s.length(),len=0,r=0; HashMap<Character,Integer> h=new HashMap<Character,Integer>(); for(int i=0;i<l;) { char c=s.charAt(i); if(h.containsKey(c)) { i=h.get(c)+1; // we should restart and clear the hash...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this ...
[ "0.7085202", "0.70152825", "0.70048785", "0.6863522", "0.68364745", "0.682089", "0.68138087", "0.6797307", "0.6784227", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.6755715", "0.67436904", "0.67295706", "0.67241466", "0.6723099", "0.66999674", "0.668805...
0.0
-1
Start typing your Java solution below DO NOT write main() function
public int lengthOfLongestSubstring(String s) { if(s.length()<=1) return s.length(); HashMap<Character,Integer> h=new HashMap<Character,Integer>(); int curmax=0,max=0; for(int i=0;i<s.length();i++) { char c=s.charAt(i); if(h.containsKey(c)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String[] args) {\n\n Solution2.solution();\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this ...
[ "0.7084938", "0.70155996", "0.7005523", "0.68639696", "0.6836968", "0.6820533", "0.6814067", "0.6797289", "0.67841405", "0.6755723", "0.6755723", "0.6755723", "0.6755723", "0.6755723", "0.6755723", "0.6743834", "0.6730596", "0.6724133", "0.67238855", "0.6699892", "0.66880393"...
0.0
-1
TODO Autogenerated constructor stub
public PantallaPersonal(GeoWallStart game) { super(game); user= new Usuario(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Constructor(){\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "@Ov...
[ "0.7658869", "0.71549827", "0.70363975", "0.6936954", "0.6918867", "0.6918655", "0.68630713", "0.68442994", "0.6838973", "0.68234706", "0.6819426", "0.6792848", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.67713094", "0.67713094", "0.677130...
0.0
-1
TODO Autogenerated method stub
@Override public void pause() { super.pause(); }
{ "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 render(float delta) { super.render(delta); Gdx.gl.glClearColor(0.3f, 0.3f, 0.3f, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); escenariopciones.act(); escenariopciones.draw(); }
{ "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 show() { super.show(); Skin skin = new Skin(Gdx.files.internal("Textos/uiskin.json")); int miniheight= Gdx.graphics.getHeight()/8; int mitad= Gdx.graphics.getWidth()/2; //int miniwidth= Gdx.graphics.getWidth()/8; /*Botones*/ btnVolv = new TextButton("Back", skin); btnVolv.se...
{ "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
Controlo que pantalla se lanza
public void run (){ game.setScreen(game.ui); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\tre...
[ "0.6616379", "0.6510753", "0.6483997", "0.6368984", "0.6349623", "0.63443464", "0.63333726", "0.63331777", "0.6315324", "0.629039", "0.62726676", "0.62692356", "0.62480366", "0.62233263", "0.61929834", "0.61724305", "0.6150366", "0.6145208", "0.61424625", "0.6136793", "0.6136...
0.0
-1
Created by smartsense on 10/10/16.
public interface NewsDetailViewInt { void onSuccessNewsDetail(NewsObject newsObject); void onFailRequest(); void onFailResponse(String message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6130543", "0.606449", "0.59488094", "0.59441996", "0.59098226", "0.5873072", "0.5842577", "0.5836899", "0.5836899", "0.57737213", "0.5753588", "0.57253194", "0.57227933", "0.5719401", "0.5716169", "0.571443", "0.5712522", "0.5712522", "0.5712522", "0.5712522", "0.5712522",...
0.0
-1
/ access modifiers changed from: private
public void g(j jVar, String str) { if (!this.b) { com.duapps.ad.entity.a aVar = jVar.c; CharSequence charSequence = aVar != null ? aVar.c : null; if (TextUtils.isEmpty(charSequence)) { f.c("ToolClickHandler", "browserUrl:" + str + " no pkgname"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: final
public final void a(j jVar, String str) { if (jVar.d() > 0) { d dVar = new d(); dVar.a = jVar.h(); dVar.d = str; dVar.b = jVar.a(); dVar.c = 1; dVar.e = System.currentTimeMillis(); n.a(this.c).a(dVar); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n boolean isFinal() {\n return false;\n }", "private void m50366E() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", ...
[ "0.6780707", "0.6668983", "0.64784324", "0.64714205", "0.6469956", "0.64253914", "0.639059", "0.6387737", "0.63849646", "0.63145995", "0.6310284", "0.6293742", "0.627373", "0.6263488", "0.62235826", "0.61849713", "0.615402", "0.6149339", "0.6118576", "0.61151254", "0.6108757"...
0.0
-1
/ access modifiers changed from: protected|final
public final void b(j jVar, String str) { DefaultHttpClient d = h.d(); d.setRedirectHandler(new a(jVar)); if (f.a()) { f.c("ToolClickHandler", "[Http] Decode URL: " + str); } try { HttpGet httpGet = new HttpGet(str); HttpConnectionParams.setCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private abstract vo...
[ "0.71384865", "0.69118977", "0.6696497", "0.6618639", "0.65816313", "0.6562871", "0.6548142", "0.653354", "0.64645296", "0.64423484", "0.63971317", "0.6393302", "0.63451064", "0.63451064", "0.6304564", "0.6303807", "0.6302703", "0.62856597", "0.6280776", "0.62375546", "0.6225...
0.0
-1
/ is there enough students in the group to make it viable
public boolean hasEnoughStudents() { if (this.students.size() >= minStudents) { return true; } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "public boolean passed(){\n if (totalMark() == -1) {\n throw new IllegalArgumentException(\"Not enough marks to evaluate student\"); \n } else if (totalMark() >= 50...
[ "0.6341505", "0.6031025", "0.589828", "0.5883965", "0.588341", "0.58529854", "0.58273566", "0.5792102", "0.5788709", "0.57864666", "0.5732458", "0.5730918", "0.5720583", "0.5689395", "0.5687305", "0.5681927", "0.56564224", "0.562609", "0.56043637", "0.55598146", "0.5549267", ...
0.692181
0
Performs the correct push
public static void paramPush(String val) { paramPush(val, PARAM_IDX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(T entry)\n { \n first = push(entry, first);\n }", "static void perform_push(String passed){\n\t\tint type = type_of_push(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpush_to_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public void push(T x);", "public void push(T data);", ...
[ "0.73344195", "0.73179114", "0.7137593", "0.7109531", "0.7109531", "0.70550174", "0.70550174", "0.7049183", "0.7024642", "0.69732815", "0.69699806", "0.6950878", "0.69186103", "0.69109976", "0.69005364", "0.6891724", "0.6884225", "0.68716395", "0.6866837", "0.6855733", "0.684...
0.0
-1
Performs the correct push
public static void paramPush(String val, int curIdx) { PARAM_IDX = curIdx - 1; if(PARAM_IDX >= 0 && Options.OUTPUT_64BIT && PARAM_IDX < PARAM_64.length) { LAST_REG = PARAM_64[PARAM_IDX]; gen.emitBinary(MOV, val, LAST_REG); } else { LAST_REG = MEM(ESP); gen.emitUnary(PUSH, val); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(T entry)\n { \n first = push(entry, first);\n }", "static void perform_push(String passed){\n\t\tint type = type_of_push(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpush_to_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public void push(T x);", "public void push(T data);", ...
[ "0.73343986", "0.73170257", "0.71382475", "0.71098626", "0.71098626", "0.70555276", "0.70555276", "0.70494944", "0.70254177", "0.69737136", "0.6969689", "0.6951466", "0.69196457", "0.6911523", "0.6901472", "0.68925333", "0.688456", "0.68715435", "0.68666965", "0.6855918", "0....
0.0
-1
Gets the memory location of a register or variable
public static String MEM(String reg) { return String.format("(%s)", reg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Addr getLocationOnStack() {\n\n\t\tImm immediateStackPointerOffset = new Imm(String.valueOf(this.spOffset));\n\t\tAddr spilledValueLocationOnStack = new Addr(immediateStackPointerOffset, this.sp);\n\t\treturn spilledValueLocationOnStack;\n\t}", "public long memoryAddress()\r\n/* 143: */ {\r\n/* 144:1...
[ "0.6466579", "0.6395007", "0.619475", "0.61636657", "0.60281837", "0.5974123", "0.5839373", "0.582894", "0.56576073", "0.56184", "0.55833364", "0.55754316", "0.5573069", "0.5573069", "0.5565978", "0.5565942", "0.55628943", "0.5562637", "0.5559602", "0.5557942", "0.55509835", ...
0.5153718
64
Gets the memory location of a register or variable
public static String MEM(String reg, int offset) { return String.format("%d(%s)", SIZE * offset, reg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Addr getLocationOnStack() {\n\n\t\tImm immediateStackPointerOffset = new Imm(String.valueOf(this.spOffset));\n\t\tAddr spilledValueLocationOnStack = new Addr(immediateStackPointerOffset, this.sp);\n\t\treturn spilledValueLocationOnStack;\n\t}", "public long memoryAddress()\r\n/* 143: */ {\r\n/* 144:1...
[ "0.6466579", "0.6395007", "0.619475", "0.61636657", "0.60281837", "0.5974123", "0.5839373", "0.582894", "0.56576073", "0.56184", "0.55833364", "0.55754316", "0.5573069", "0.5573069", "0.5565978", "0.5565942", "0.55628943", "0.5562637", "0.5559602", "0.5557942", "0.55509835", ...
0.52441466
48
Initializes the constants with the correct 64/32bit names
public static void init() { if(Options.OUTPUT_64BIT) { SIZE = 8; OBJECT = "16(%rbp)"; RET = "-8(%rbp)"; PUSH = "pushq"; POP = "popq"; EAX = "%rax"; EBX = "%rbx"; ECX = "%rcx"; EDX = "%rdx"; EBP = "%rbp"; ESP = "%rsp"; MOV = "movq"; ZMOV = "movzbq"; ADD = "addq"; SUB = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void init () {\r\n\t\t// make sure they all have non-null entries\r\n\t\tName undef = new Name(\"undef\", 'u');\r\n\t\tArrays.fill(op_names, undef);\r\n\t\tArrays.fill(fn_names, undef);\r\n\t\tArrays.fill(cfn_names, undef);\r\n\t\tArrays.fill(rs_names, undef);\r\n\t\tArrays.fill(rt_names, undef);\r\...
[ "0.5956287", "0.59497076", "0.5774448", "0.57013404", "0.5568644", "0.55627626", "0.5559986", "0.5525795", "0.5525795", "0.5525795", "0.5479647", "0.5469944", "0.54667187", "0.5415178", "0.5391424", "0.5354243", "0.5353076", "0.5334489", "0.5327123", "0.5327123", "0.53198844"...
0.63792914
0
Handle a request to create a new field.
public void handleUpdateBinaryField(InternalActionContext ac, String uuid, String fieldName, MultiMap attributes) { validateParameter(uuid, "uuid"); validateParameter(fieldName, "fieldName"); String languageTag = attributes.get("language"); if (isEmpty(languageTag)) { throw error(BAD_REQUEST, "upload_error_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n Byt...
[ "0.654787", "0.6349394", "0.5826492", "0.5814961", "0.5714794", "0.5681315", "0.56407434", "0.55798054", "0.5572074", "0.5526536", "0.5449499", "0.5413799", "0.5390495", "0.5370032", "0.53590757", "0.5321475", "0.531641", "0.5290527", "0.52833706", "0.5275468", "0.52746356", ...
0.0
-1
Hash the file upload data and move the temporary uploaded file to its final destination.
public void moveBinaryFile(InternalActionContext ac, String uuid, String segmentedPath) { MeshUploadOptions uploadOptions = Mesh.mesh().getOptions().getUploadOptions(); File uploadFolder = new File(uploadOptions.getDirectory(), segmentedPath); File targetFile = new File(uploadFolder, uuid + ".bin"); String targ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File moveTempFile(final CommonsMultipartFile fileData, final String originalFileName) throws IOException {\n String deployFileName = buildDeployFileName(originalFileName);\n logger.info(\"Moving to {}\", deployFileName);\n final File tempFile = new File(deployFileName);\n fileDa...
[ "0.6526055", "0.57184446", "0.5676571", "0.56679", "0.5665823", "0.5653748", "0.5496966", "0.5434942", "0.52374846", "0.5166769", "0.5113308", "0.51121557", "0.51058036", "0.5102986", "0.5100929", "0.50704694", "0.50630075", "0.50612205", "0.50565124", "0.50548965", "0.504592...
0.522739
9
Hash the data from the buffer and store it to its final destination.
public String hashAndStoreBinaryFile(Buffer buffer, String uuid, String segmentedPath) { MeshUploadOptions uploadOptions = Mesh.mesh().getOptions().getUploadOptions(); File uploadFolder = new File(uploadOptions.getDirectory(), segmentedPath); File targetFile = new File(uploadFolder, uuid + ".bin"); String targe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "java.lang.String getHashData();", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "private void flush() {\n\t\tif (bytesDigested == 0) {\n\t\t\t/*\n\t\t\t * This i...
[ "0.64855874", "0.5997176", "0.59309316", "0.59309316", "0.57075894", "0.56021804", "0.5581704", "0.55545837", "0.55346256", "0.5491193", "0.54745936", "0.54666096", "0.54489064", "0.5408806", "0.5384694", "0.53741044", "0.5349871", "0.5349871", "0.53352207", "0.5329477", "0.5...
0.615014
1
Hash the given buffer and return a sha512 checksum.
protected String hashBuffer(Buffer buffer) { return FileUtils.generateSha512Sum(buffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public static MessageDigest getSha512MessageDigestInstance() {\n try {\n return MessageDigest.getInstance(\"SHA-512\");\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateExcept...
[ "0.6422001", "0.63125503", "0.6222675", "0.59744227", "0.5953681", "0.5857054", "0.5804058", "0.57518834", "0.55181414", "0.55181414", "0.5489355", "0.54873395", "0.54449487", "0.54052246", "0.53650916", "0.5356416", "0.52990884", "0.5263203", "0.51919484", "0.5172377", "0.51...
0.7882477
0
Delete potential existing file uploads from the given path.
protected void deletePotentialUpload(String targetPath) { FileSystem fileSystem = Mesh.vertx().fileSystem(); if (fileSystem.existsBlocking(targetPath)) { // Deleting of existing binary file fileSystem.deleteBlocking(targetPath); } // log.error("Error while attempting to delete target file {" + targetPath ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteFile(FsPath path);", "private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n ...
[ "0.70746523", "0.69871855", "0.69622076", "0.67605114", "0.6740859", "0.6557722", "0.64825845", "0.64662683", "0.64482063", "0.64460045", "0.64314246", "0.6369462", "0.6338476", "0.63112074", "0.62738085", "0.62456125", "0.61685026", "0.61608094", "0.6128986", "0.61244774", "...
0.7095235
0
Move the file upload from the temporary upload directory to the given target path.
protected void moveUploadIntoPlace(String fileUpload, String targetPath) { FileSystem fileSystem = Mesh.vertx().fileSystem(); fileSystem.moveBlocking(fileUpload, targetPath); if (log.isDebugEnabled()) { log.debug("Moved upload file from {" + fileUpload + "} to {" + targetPath + "}"); } // log.error("Failed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void deletePotentialUpload(String targetPath) {\n\t\tFileSystem fileSystem = Mesh.vertx().fileSystem();\n\t\tif (fileSystem.existsBlocking(targetPath)) {\n\t\t\t// Deleting of existing binary file\n\t\t\tfileSystem.deleteBlocking(targetPath);\n\t\t}\n\t\t// log.error(\"Error while attempting to delete ta...
[ "0.64424634", "0.62019885", "0.61031085", "0.60230386", "0.59627306", "0.5876692", "0.5761867", "0.57059383", "0.5666552", "0.5656961", "0.562041", "0.5568552", "0.5494299", "0.54845756", "0.5418161", "0.5404184", "0.53591305", "0.52858955", "0.52717394", "0.526696", "0.52641...
0.7865112
0
Store the data in the buffer into the given place.
protected void storeBuffer(Buffer buffer, String targetPath) { FileSystem fileSystem = Mesh.vertx().fileSystem(); fileSystem.writeFileBlocking(targetPath, buffer); // log.error("Failed to save file to {" + targetPath + "}", error); // throw error(INTERNAL_SERVER_ERROR, "node_error_upload_failed", error); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(long position, ByteBuffer src);", "public abstract void put(long position, ByteBuffer src);", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "public void put(T bufferItem);", "@Override\n ...
[ "0.71043843", "0.69831496", "0.66977787", "0.6655542", "0.6405381", "0.630406", "0.62762284", "0.61528885", "0.6151908", "0.6047786", "0.60048336", "0.6000252", "0.5964378", "0.5950482", "0.58705527", "0.5838961", "0.58280617", "0.57932293", "0.5774736", "0.57590413", "0.5754...
0.5570026
29
Check the target upload folder and create it if needed.
protected void checkUploadFolderExists(File uploadFolder) { boolean folderExists = uploadFolder.exists(); // log.error("Could not check whether target directory {" + uploadFolder.getAbsolutePath() + "} exists.", error); // throw error(BAD_REQUEST, "node_error_upload_failed", error); if (!folderExists) { up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private String createTestTargetFolder(Long targetId, Long userId) {\r\n\t\t// create user folder if not existing\r\n\t\tString path = mFileStorePath + userId + \"//tt-\" + targetId;\r\n\t\tif (new Fil...
[ "0.6207637", "0.61692244", "0.60718423", "0.6048305", "0.59793884", "0.59686595", "0.5920112", "0.58985716", "0.58260447", "0.5764579", "0.56772673", "0.566933", "0.56262344", "0.5615472", "0.5589455", "0.55725276", "0.5567756", "0.5560508", "0.5557556", "0.55434096", "0.5540...
0.6983215
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.7885466", "0.75500387", "0.7497769", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", "0.74621904", ...
0.0
-1
separatecomp String startTime = "1355296757695"; //dist String startTime = "1355603001518"; //multicomp
long time() { return System.currentTimeMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t Stri...
[ "0.57933867", "0.57369894", "0.5562116", "0.5528699", "0.54228014", "0.5409913", "0.54092073", "0.53692746", "0.5342386", "0.53301346", "0.5290257", "0.5285202", "0.5269198", "0.5267428", "0.5204199", "0.5199916", "0.5189181", "0.5139765", "0.51232874", "0.51106495", "0.50743...
0.0
-1
String startTime = "1355561151577"; //multidist
@Override public void handle(final HttpServerRequest req) { String startTime = "1355562000000"; //--multi-dist Iterator<EventInfo> iter = dataService.events() .find("{timestamp:{$gt:"+startTime+"}}") .sort("{timestamp:1}") .as(EventInfo.class).iterator(); EventCounter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t Stri...
[ "0.640282", "0.62699205", "0.6057542", "0.5902659", "0.58440566", "0.5766358", "0.5766089", "0.57492685", "0.5743484", "0.56816524", "0.56412905", "0.5624378", "0.559303", "0.55849487", "0.5583652", "0.5583324", "0.5575246", "0.55676025", "0.5564727", "0.5557189", "0.55483025...
0.0
-1
2 VM by 2 hosts separate component
@Override public void handle(final HttpServerRequest req) { String startTime = "1355620946302"; //--separate-comp Iterator<EventInfo> iter = dataService.events() .find("{timestamp:{$gt:"+startTime+"}}") .sort("{timestamp:1}") .as(EventInfo.class).iterator(); EventCounte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @BeforeMethod(alwaysRun=true)\n public boolean testSetUp()\n throws Exception\n {\n ifolder = new Folder(connectAnchor);\n idvs = new DistributedVirtualSwitch(connectAnchor);\n ihs = new HostSystem(connectAnchor);\n\n // get a standalone hostmors\n // We need at at l...
[ "0.5742836", "0.56480765", "0.5626823", "0.5602879", "0.5593951", "0.5539682", "0.55269486", "0.5513223", "0.5428401", "0.5401546", "0.5397813", "0.53855497", "0.53550166", "0.5352535", "0.5343622", "0.5332095", "0.52945864", "0.5289997", "0.52765363", "0.52365303", "0.522287...
0.0
-1
Specific implementation for offerTrade.
public GameState getResponse(HttpExchange exchange, int gameId) { OfferTradeRequest request = gson.fromJson(getRequestBody(exchange), OfferTradeRequest.class); return Server.facade.offerTrade(gameId, request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTrade(Trade trade) throws Exception {\n\t\t\r\n\t}", "void offerTrade(int receiver, Resources resources);", "@Override\n protected void trade(){\n // An example of a random trade proposal: off...
[ "0.7652015", "0.699286", "0.6938332", "0.6856787", "0.6764713", "0.6710681", "0.65746677", "0.65344685", "0.6520691", "0.6510432", "0.64186573", "0.6392677", "0.63295245", "0.63126314", "0.6290734", "0.6285263", "0.6272724", "0.62348217", "0.6224932", "0.62208134", "0.6198495...
0.0
-1