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
assume matrix array a and b have same dimensions so make a same size new matrix array
private int[][] matrixSum(int[][] a, int[][]b) { int row = a.length; int col = a[0].length; // creat a matrix array to store sum of a and b int[][] sum = new int[row][col]; // Add elements at the same position in a matrix array for (int r = 0; r < row; r++) { for (int c = 0; c < col; c++) { sum[r]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Matrix copy(Matrix a){\r\n \t if(a==null){\r\n \t return null;\r\n \t }\r\n \t else{\r\n \t int nr = a.getNrow();\r\n \t int nc = a.getNcol();\r\n \t double[][] aarray = a.getArrayReference();\r\n \t Matrix b = new Matrix(nr,nc);\r\n...
[ "0.63096976", "0.6228771", "0.6162055", "0.60840786", "0.59279466", "0.5920086", "0.5908467", "0.58514", "0.5820452", "0.5785649", "0.5782648", "0.56260514", "0.56221277", "0.554129", "0.55020905", "0.54914874", "0.5457102", "0.5455682", "0.5431774", "0.5413106", "0.53374636"...
0.6052478
4
/ Device interface methods.
@Override public void setup(IOIO ioio) throws ConnectionLostException { this.ioio = ioio; uart = ioio.openUart(rxPin, txPin, baud, parity, stopbits); in = new PacketInputStream(uart.getInputStream(), Packet.START_BYTES, MAX_DATA_LENGTH); out = new PacketOutputStream(uart.getOutputStream(), Packet.START_BYTE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Device createDevice();", "Reference getDevice();", "public device() {\n\t\tsuper();\n\t}", "public void initDevice() {\r\n\t\t\r\n\t}", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "private Di...
[ "0.7581337", "0.7476219", "0.7267232", "0.724411", "0.6878045", "0.6877951", "0.6846929", "0.67785335", "0.6732243", "0.67075276", "0.66806436", "0.66349065", "0.66346514", "0.6600811", "0.65665025", "0.656249", "0.6559653", "0.6518945", "0.64866674", "0.64741147", "0.6467064...
0.0
-1
Construct a packet whit the information that a vpn is ready
private void sendNotificationPacketConnectionComplete(PlatformComponentProfile destinationPlatformComponentProfile, PlatformComponentProfile remotePlatformComponentProfile){ System.out.println(" WsCommunicationVPNServer - sendNotificationPacketConnectionComplete = " + destinationPlatformComponentProfile.getIde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MAVLinkPacket pack(){\n MAVLinkPacket packet = new MAVLinkPacket(MAVLINK_MSG_LENGTH);\n packet.sysid = 255;\n packet.compid = 190;\n packet.msgid = MAVLINK_MSG_ID_GIMBAL_DEVICE_INFORMATION;\n \n packet.payload.putUnsignedInt(time_boot_ms);\n \n ...
[ "0.63744324", "0.6200962", "0.5769856", "0.57669115", "0.56937945", "0.5552864", "0.55173105", "0.55003744", "0.5492365", "0.5474304", "0.5469371", "0.5430934", "0.5405329", "0.5389872", "0.5387169", "0.5347576", "0.52999675", "0.52859616", "0.52735627", "0.52563787", "0.5233...
0.5009177
36
Indicate is active this vpn
public boolean isActive(){ return (registeredParticipants.size() == connections().size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "int isActive();", "boolean isActive();", "boolean isActive();", "boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive();", "public boolean isActive(...
[ "0.65837663", "0.6546203", "0.6528115", "0.6528115", "0.6528115", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.6519503", "0.64940405", ...
0.0
-1
/ method paintComponent() called automatically and creates stats for post game pre: class extends JPanel post: draws text
public void paintComponent(Graphics g) { super.paintComponent(g); g.setFont(new Font("Times", Font.PLAIN, 30)); //draw the stats g.drawString(hitPercent+"%", 220, 132); g.drawString(hits+"/"+clicks, 220, 201); g.drawString(inner+"/"+hits, 220, 271); g.drawString(middle+"/"+hits, 220, 341); g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "@Override\n public void paintComponent(Graphics g) {\n loadScore();\n stage = Board.getStage();\n super.paintComponent(g);...
[ "0.7117555", "0.69077957", "0.67782617", "0.6757868", "0.6697335", "0.6673638", "0.65874213", "0.65851146", "0.6573355", "0.65397525", "0.6501058", "0.64992297", "0.64808893", "0.6479183", "0.64745325", "0.6472103", "0.6443235", "0.64344937", "0.6413964", "0.63937", "0.639062...
0.6033316
93
/ method actionPerformed() automatically called by ActionPerformed pre: an element with actionListener is used post: changes variable values
public void actionPerformed(ActionEvent e) { //enable buttons if(e.getActionCommand().equals("Play Again")) { playAgain = true; } else if(e.getActionCommand().equals("Main Menu")) { mainMenu = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\r\n\t\t\tmode = InputMode.CHANGE_VALUE;\r\n\t\t\tinstr.setText(\"Click an array element to change its value.\");\r\n\t\t\tdefaultVar(canvas);\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\...
[ "0.7578621", "0.75623333", "0.75401056", "0.7507435", "0.7507435", "0.7502033", "0.7472687", "0.7472687", "0.7471197", "0.7471197", "0.7471197", "0.7471197", "0.7464283", "0.7463565", "0.74399537", "0.7439847", "0.7439847", "0.7439847", "0.73907816", "0.73865736", "0.73807687...
0.0
-1
/ method JTextArea() called main and creates text pre: JText area name, string text to be displayed, font, int x and y boundary, int x and y location post: text will be created
public JTextArea createText(JTextArea a, String name, Font newFont, int boundX, int boundY, int x, int y) { a = new JTextArea(name); a.setFont(newFont); a.setBounds(boundX, boundY, x, y); a.setBackground(Color.lightGray); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateTextArea()\n {\n //Clear the textArea\n textArea.selectAll();\n textArea.replaceSelection(\"\");\n\n MyCircle circle = panel.getCircle();\n\n //Add all of the required information to the textarea\n textArea.append(String.format(\"AREA: %.2f %n\", ci...
[ "0.7171199", "0.68995863", "0.67319757", "0.6699822", "0.66764903", "0.6627435", "0.65464455", "0.649321", "0.6475411", "0.6366971", "0.6328126", "0.63064295", "0.62885237", "0.62480783", "0.6245128", "0.623272", "0.6230215", "0.62112856", "0.61783445", "0.6173275", "0.617088...
0.74366945
0
/ method getHitPercent() assigns hitPercent a value pre: called by class post: hitPercent is set a value
public void getHitPercent(double hitPer) { hitPercent = hitPer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateHpPercent();", "public double getPercent() { return this.percentage; }", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "float getPercentHealth();", "public float getPercent() {\n return percent;\n }", "float getBonusPercentHP();", "pu...
[ "0.6972018", "0.68417776", "0.67818373", "0.67780143", "0.67321914", "0.67294395", "0.6702303", "0.66648656", "0.66647875", "0.663237", "0.6623012", "0.65433013", "0.651998", "0.6495054", "0.64480823", "0.6368477", "0.6362327", "0.6362327", "0.63171333", "0.6300407", "0.62898...
0.85336
0
/ method getHits() assigns hits a new value pre: called by class post: hits is set a value
public void getHits(int newHits) { hits = newHits; //set achievement number if(hits >=25 && hits<50) { achievement = 1; } else if(hits >=50 && hits<100) { achievement = 2; } else if(hits >=100 && hits<200) { achievement = 3; } else if(hits > 200) { achievement = 4; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getHits();", "public void setHits(Hits hits) {\n this.hits = hits;\n }", "protected int hit() {\r\n\t\treturn hits;\r\n\t}", "public Hits getHits() {\n return this.hits;\n }", "public int getTotalHits() { return totalHits; }", "public void setHits(String hits) {\n\t\tthis.hits = ...
[ "0.8030795", "0.8014527", "0.8012211", "0.7666918", "0.75827223", "0.75111866", "0.7324839", "0.72640026", "0.7107536", "0.7099019", "0.7044796", "0.68921417", "0.6872437", "0.6819104", "0.67668855", "0.6755972", "0.67529947", "0.668677", "0.6678271", "0.66750634", "0.6671697...
0.6964608
11
/ method getClicks() assigns clicks a value pre: called by class post: clicks is set a value
public void getClicks(int newClicks) { clicks = newClicks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setClicks(Integer clicks) {\r\n this.clicks = clicks;\r\n }", "public Integer getClicks() {\r\n return clicks;\r\n }", "public int getClicks() {\n return clicks;\n }", "public static void clickEvent() {\n counterClicks += 1;\n }", "public final int getCli...
[ "0.7563132", "0.7365638", "0.73367035", "0.67573786", "0.6756522", "0.6753837", "0.6702234", "0.6605848", "0.65964866", "0.6488016", "0.64605343", "0.6416191", "0.64075816", "0.63384235", "0.62288916", "0.61413777", "0.6065179", "0.59557676", "0.59528637", "0.5927348", "0.584...
0.7160273
3
/ method getInner() assigns inner a value pre: called by class post: inner is set a value
public void getInner(int newIn) { inner = newIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Inner getInner(){\n Outer.this.toString();\n return this.new Inner();\n }", "@Override\n public long get() {\n return (long) inner.get();\n }", "public void callInner() {\n Inner inner = new Inner();\n inner.go();\n int f = inner.private_int; //pri...
[ "0.7578771", "0.6266505", "0.6190851", "0.5972468", "0.59223294", "0.5878079", "0.58094937", "0.5784473", "0.57815784", "0.5764427", "0.5749928", "0.5738386", "0.57214135", "0.5688878", "0.5660172", "0.56565666", "0.5618866", "0.5604169", "0.56006646", "0.5597678", "0.5595262...
0.68464607
1
/ method getMiddle() assigns middle a value pre: called by class post: middle is set a value
public void getMiddle(int newMid) { middle = newMid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode getMiddle() {\n\t\treturn middle;\n\t}", "public String getMiddleInitial(){\r\n\t\treturn middleInitial;\r\n\t}", "public String getMiddleInitial() {\r\n return middleInitial;\r\n }", "public int getMid() {\r\n return mid;\r\n }", "public String getMiddleName()\n\t{\n\t\...
[ "0.7793654", "0.7509473", "0.74406743", "0.70218664", "0.7011225", "0.70102924", "0.70042545", "0.69779897", "0.695652", "0.6878973", "0.6877037", "0.6876031", "0.6876031", "0.6868402", "0.68632925", "0.67465025", "0.67262113", "0.67262113", "0.67128795", "0.67016685", "0.668...
0.7781274
1
/ method getOuter() assigns outer a value pre: called by class post: outer is set a value
public void getOuter(int newOut) { outer = newOut; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Inner getInner(){\n Outer.this.toString();\n return this.new Inner();\n }", "public IClassHolder getOuterClass() {\n return m_outerClass;\n }", "private Scanner getOuterType() {\r\n\t\t\treturn Scanner.this;\r\n\t\t}", "public void getInner(int newIn) {\r\n\t\tinner = newIn;\r\n\t}...
[ "0.75382566", "0.676651", "0.62820154", "0.6227598", "0.6131806", "0.59936464", "0.59682494", "0.5886827", "0.58778876", "0.5845333", "0.57694024", "0.5729968", "0.5696503", "0.56574744", "0.5642751", "0.5633338", "0.5596269", "0.55450606", "0.55350953", "0.55323535", "0.5528...
0.69249517
1
/ method getPlayAgain() returns boolean playAgain pre: called by class post: playAgain returned
public boolean getPlayAgain() { return playAgain; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playAgain();", "private boolean PlayAgain() {\n int choice = Main.HandleInput(\"Play Again\", 2);\n if (choice == 1){\n ResetGame();\n return true;\n }\n else{\n return false;\n }\n }", "public static boolean playAgain() {\n\t\t...
[ "0.7569369", "0.7324762", "0.7053484", "0.7006865", "0.6849424", "0.6672835", "0.6585011", "0.652804", "0.6512537", "0.6448473", "0.63522893", "0.63388336", "0.6245762", "0.62193525", "0.6213829", "0.62094766", "0.61875427", "0.6186188", "0.6184382", "0.6184382", "0.6184274",...
0.8676839
0
/ method getMain() returns boolean mainMenu pre: called by class post: mainMenu returned
public boolean getMain() { return mainMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isMainEntry() {\n return mainEntry;\n }", "public boolean isMainEntry() {\n return mainEntry;\n }", "public boolean isMainEntry() {\n return mainEntry;\n }", "public boolean isMainEntry() {\n re...
[ "0.72580534", "0.72580534", "0.72580534", "0.72580534", "0.71366125", "0.7016086", "0.69500875", "0.68440884", "0.68361807", "0.6832889", "0.67070824", "0.6596803", "0.6530401", "0.651915", "0.6466039", "0.63584286", "0.6263848", "0.6221437", "0.6218691", "0.62167376", "0.621...
0.88325834
0
/ method reset() resets variables pre: called by class post: variables reset
public void reset() { playAgain = false; mainMenu = false; achievement = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reset() {\n errors.clear();\n variables.clear();\n }", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "protected void reset() {\n\t\t}", "void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear...
[ "0.8190714", "0.8164207", "0.8137544", "0.81208813", "0.80716777", "0.80097675", "0.79915035", "0.7990787", "0.79784364", "0.79784364", "0.79710186", "0.795908", "0.7956982", "0.794809", "0.794809", "0.794809", "0.794809", "0.79474676", "0.7911503", "0.7911503", "0.7911503", ...
0.0
-1
Register a new patient
public void registerPatientMethod1(Patient p);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void AddPatiant(Patient p) throws Exception;", "public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;", "public void addNewPatient(View v) {\n\tDataHandler dh;\n\ttry {\n\t dh = new DataHandler(this.getApplicationContext().getFilesDir(),\n\t\t DataHandler.PATIENT_DATA);\n\t ...
[ "0.70644003", "0.7027657", "0.6833302", "0.68289465", "0.6783486", "0.67359453", "0.67004746", "0.66841096", "0.66819596", "0.66763794", "0.6633236", "0.66066146", "0.6550695", "0.6531763", "0.65305924", "0.65281767", "0.6439206", "0.64058465", "0.6397144", "0.6394249", "0.63...
0.75117075
0
Insert many doctors. Demonstrates using prepared statements
public void insertDoctors(List<Doctor> drlist);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"M...
[ "0.63936657", "0.6237307", "0.6204289", "0.61939675", "0.61651635", "0.6045778", "0.60406345", "0.60139024", "0.59982926", "0.5960285", "0.5959605", "0.59392685", "0.5939246", "0.593446", "0.59234166", "0.5921692", "0.5911409", "0.58744514", "0.5844942", "0.58441424", "0.5837...
0.6845483
0
Get or insert on specialty term
public int getOrInsertSpecialty(String specialty);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSpecialty() {\r\n\t\treturn specialty;\r\n\t}", "public String getTerm(){\n return this.term;\n }", "public String getTerm() {\n return term;\n }", "public String getSpeciality() {\n return this.speciality;\n }", "Term getTerm();", "public Expression getTerm() {\n...
[ "0.656113", "0.60758215", "0.5817956", "0.5733004", "0.53925717", "0.53815633", "0.5254206", "0.52165467", "0.5203848", "0.5194837", "0.51529324", "0.51493514", "0.51408464", "0.5122484", "0.5112357", "0.5089048", "0.5068993", "0.5036579", "0.5034051", "0.50214237", "0.501951...
0.6600441
0
Find doctors accepting new patients for a given patient
public List<Doctor> acceptingNewPatients(String specialty);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }", "@GET(DOCTOR_PATIENTS_PATH)\n\tCollection<Patient> getPatients(\n\t\t\t@Path(DOCTOR_ID_PARAM) long doctorId);", "@Override\n @Transactional\n public List<Patient> selectPa...
[ "0.6065035", "0.6060606", "0.6003099", "0.6002306", "0.5956571", "0.5760411", "0.5759971", "0.56301725", "0.55534244", "0.5449157", "0.54232925", "0.5412584", "0.5357848", "0.53300506", "0.5314103", "0.5287179", "0.52531147", "0.52060544", "0.51999307", "0.51540375", "0.51502...
0.69306606
0
Close the connection when application finishes
public void closeConnection();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n connection.close();\n running = false;\n }", "private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t...
[ "0.7643529", "0.7517283", "0.7517047", "0.74412906", "0.7434357", "0.74200165", "0.7323317", "0.72711265", "0.72571474", "0.7247032", "0.71815896", "0.7161029", "0.71319157", "0.71157753", "0.7112255", "0.7102967", "0.7076734", "0.70654297", "0.7045493", "0.70327955", "0.7019...
0.71307695
13
TODO use examples from the book and from other references to ensure the correctness of these examples.
@Test public void test() { testBookExample(); // testK5(); // testK3_3(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void smell() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "private static void oneUserExample()\t{\n\t}", "@Override...
[ "0.57029736", "0.5651054", "0.5640278", "0.5599577", "0.5598459", "0.5588469", "0.55635494", "0.5544989", "0.55401856", "0.55197203", "0.5507415", "0.547445", "0.5449551", "0.542113", "0.5417415", "0.54154116", "0.5400605", "0.53862154", "0.5385174", "0.5372707", "0.53396595"...
0.0
-1
example graph from "graph drawing" book of the orthogonalization chapter.
private void testBookExample() { PGraph pgraph = createBookExample(); for (PNode node : pgraph.getNodes()) { if (node.id == 4) { PEdge edge = node.getEdge(10); node.getEdges().remove(edge); node.getEdges().add(edge); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void printGraph();", "void makeSampleGraph() {\n\t\tg.addVertex(\"a\");\n\t\tg.addVertex(\"b\");\n\t\tg.addVertex(\"c\");\n\t\tg.addVertex(\"d\");\n\t\tg.addVertex(\"e\");\n\t\tg.addVertex(\"f\");\n\t\tg.addVertex(\"g\");\n\t\tg.addEdge(\"a\", \"b\");\n\t\tg.addEdge(\"b\", \"c\");\n\t\tg.addEdge(\"b\", \"f\");\n...
[ "0.70059246", "0.6521915", "0.6461034", "0.6359892", "0.62959903", "0.6237567", "0.6218009", "0.6180514", "0.6174828", "0.61141837", "0.6048778", "0.6032969", "0.6009366", "0.60064286", "0.598867", "0.5972979", "0.59000725", "0.5898913", "0.5883828", "0.5874535", "0.5864865",...
0.0
-1
checks if the implementation of BoyerMyrvold approach generates correct planar subgraphs.
private void testK5() { final PGraph bmSubgraph = testSubgraphBuilder(new BoyerMyrvoldPlanarSubgraphBuilder(), createK5(), 1); // checks if the implementation of BoyerMyrvold approach generates correct planar subgraphs. final PGraph lrSubgraph = testSubgraphBuilder(new LRPlanarSu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDynamicGraph();", "@Test public void testPublic12() {\n Graph<Integer> graph= new Graph<Integer>();\n int i;\n\n // note this adds the adjacent vertices in the process\n for (i= 0; i < 10; i++)\n graph.addEdge(i, i + 1, 1);\n graph.addEdge(10, 0, 1);\n\n for (Integer verte...
[ "0.5747842", "0.56819826", "0.5638937", "0.56014264", "0.55720377", "0.5563345", "0.5485057", "0.546339", "0.5458359", "0.54581505", "0.5450792", "0.5445831", "0.5418821", "0.53952235", "0.5346343", "0.53298753", "0.5321523", "0.5317895", "0.53115535", "0.53101015", "0.529205...
0.6047083
0
Take a look in the used subgraph builder to get more information.
private PGraph testSubgraphBuilder(ILayoutProcessor subgraphBuilder, PGraph testGraph, int removeEdgeCount) { subgraphBuilder.process(testGraph); Object insertable_edges = testGraph.getProperty(Properties.INSERTABLE_EDGES); // checks also against null if (insertable_edges ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SubGraph(){\r\n\t\tsuper();\r\n\t}", "public String doBigGraph(){\n NodoAvl tmp = root;\n StringBuilder sb = new StringBuilder();\n sb.append(\"subgraph {\");\n sb.append(\"node [shape = record];\\n\");\n sb.append(getLabelNodeAvl());\n sb.append(\"}\");\n ...
[ "0.67612696", "0.67568165", "0.6472118", "0.61966455", "0.598429", "0.5863176", "0.584798", "0.5811537", "0.57554245", "0.5726763", "0.56953007", "0.56698054", "0.55934775", "0.5589485", "0.5581307", "0.55568665", "0.5551044", "0.5548653", "0.551327", "0.5511818", "0.55105436...
0.0
-1
Sorts the nodes by their index.
public void sort(final Collection<PNode> theNodes) { // TODO complete this function as a supporter for the component spliter problem! // Check for empty or null array if (theNodes == null || theNodes.size() == 0) { return; } this.nodes = (PNode[]) theNodes.toArray(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortIndices() {\n sortImpl(this.indices, this.values, 0, this.indices.length - 1);\n }", "void orderNodes(Comparator<N> comparator);", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "private void sort() {...
[ "0.6724477", "0.6685008", "0.6548342", "0.64317197", "0.62294775", "0.61837023", "0.6148574", "0.59560126", "0.5939735", "0.59365857", "0.5910011", "0.59021336", "0.58808994", "0.5843028", "0.5807833", "0.58008176", "0.5774695", "0.5771916", "0.57518953", "0.5741561", "0.5730...
0.57426894
19
TODO Autogenerated method stub
public static void main(String[] args) { try { // get URL string from command line or use default String urlString; if(args.length>0) urlString=args[0]; else urlString="https://www.oracle.com/technetwork/java/index.html"; // open reader for URL InputStreamReader in=new InputStreamReader(new URL(urlS...
{ "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
React to state change
@Override public void onStateChanged(@NonNull View bottomSheet, int newState) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void stateChanged(STATE state);", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "public void updateState();", "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "abstract public void updateState();", "@Override\n\tpublic void stateChanged(Ch...
[ "0.7640883", "0.75034285", "0.73792136", "0.7274405", "0.7243841", "0.7236525", "0.7137217", "0.7123092", "0.71131146", "0.7106299", "0.7065245", "0.706245", "0.70414823", "0.6923407", "0.68358827", "0.6804058", "0.6795121", "0.6761252", "0.6761252", "0.6734164", "0.6729744",...
0.0
-1
React to dragging events
@Override public void onSlide(@NonNull View bottomSheet, float slideOffset) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onDragged();", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged( MouseEvent event ){}", "public void mouseDragged(MouseEvent event) { }", "@Override\r\n public void mouseDragged(Mouse...
[ "0.82378274", "0.80062884", "0.79744625", "0.79481834", "0.793329", "0.78801113", "0.7836185", "0.78199464", "0.77997386", "0.77965105", "0.77965105", "0.77965105", "0.77716553", "0.77716553", "0.7742438", "0.7737011", "0.7732139", "0.7714472", "0.77050674", "0.77050674", "0....
0.0
-1
TODO Autogenerated method stub
@Override public void statusVomMenschen() { System.out.println("Sie wurden getroffen nun können Sie nicht mehr so schnell laufen!"); }
{ "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
Represents the result of testing one or more handlers.
public interface HandlingResult { /** * The response body, as bytes. * <p> * This does not include file or rendered responses. * See {@link #getSentFile()} and {@link #rendered(Class)}. * * @return the response body, as bytes, or {@code null} if no response was sent. */ @Nullable byte[] getB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<FlowHandleResult> getHanResultList() {\n\t\treturn mFlowHandleResults;\r\n\t}", "private static void verifyMultipleSingleScanResults(InOrder handlerOrder, Handler handler,\n int requestId1, ScanResults results1, int requestId2, ScanResults results2,\n int listenerRequestId, Scan...
[ "0.53805846", "0.53247833", "0.52996194", "0.5244342", "0.51906663", "0.51906663", "0.5164781", "0.5160276", "0.5148366", "0.51398504", "0.51398504", "0.50938743", "0.5089222", "0.5083862", "0.5067938", "0.50415283", "0.5020819", "0.5020819", "0.50061625", "0.50025624", "0.49...
0.6098465
0
The final response headers.
Headers getHeaders();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }", "protected HeaderGroup getResponseHeaderGroup() {\n return responseHeaders;\n }", "public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}", "public VersionedMap getHeaders ()\n {\n return hea...
[ "0.7362144", "0.7170935", "0.7089766", "0.70409113", "0.702655", "0.701431", "0.6985092", "0.6984869", "0.69823295", "0.6941798", "0.6928004", "0.6899503", "0.68098736", "0.6803463", "0.6800377", "0.67673355", "0.67368793", "0.6736237", "0.6708187", "0.67011744", "0.6695958",...
0.65695
33
The final state of the context registry.
Registry getRegistry();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Context() {\n\t\tstates = new ObjectStack<>();\n\t}", "public State getfinalState(){\n\t\t\treturn finalState;\n\t\t}", "protected void storeCurrentValues() {\n }", "@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}", "public static Object contextToHold () {\n\n ret...
[ "0.63771", "0.60002714", "0.5995685", "0.5963004", "0.57343113", "0.57143414", "0.5684997", "0.56647253", "0.56570256", "0.56122345", "0.56097114", "0.54695135", "0.5454498", "0.54488677", "0.54477865", "0.5432697", "0.54307497", "0.5369782", "0.5362812", "0.53237003", "0.527...
0.0
-1
The final state of the request registry.
Registry getRequestRegistry();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RequestState getState() {\r\n\t\treturn state;\r\n\t}", "public State getfinalState(){\n\t\t\treturn finalState;\n\t\t}", "public List <State> getRequest ()\n {\n return request;\n }", "public void requestForgetLastBuildState() {\n \t\trequestForgetState = true;\n \t}", "pub...
[ "0.642718", "0.6245829", "0.5738976", "0.5644574", "0.5571294", "0.5569133", "0.556603", "0.5558777", "0.54437494", "0.540735", "0.53580225", "0.5329091", "0.531515", "0.5299737", "0.52928567", "0.52911514", "0.5282476", "0.52735883", "0.5269018", "0.52578557", "0.52577865", ...
0.5254951
21
Indicates whether the result of invoking the handler was that it delegated to a downstream handler.
boolean isCalledNext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDelegatedOutput();", "public boolean hasDelegatedOutput() {\n return delegatedOutput_ != null;\n }", "public boolean hasDelegatedOutput() {\n return delegatedOutputBuilder_ != null || delegatedOutput_ != null;\n }", "Boolean isInvokeSuccess();", "public boolean isHandRaised (...
[ "0.6527833", "0.6332099", "0.61238027", "0.59459764", "0.58192825", "0.57962084", "0.57313836", "0.562671", "0.54849154", "0.54096615", "0.5409118", "0.53905517", "0.53711885", "0.53674936", "0.5363202", "0.535215", "0.5348803", "0.53460765", "0.53387386", "0.5299306", "0.527...
0.56862915
7
we will call printArray method
public static void print2Arrays2(int[]arrNums1,int[]arrNums2) { if (arrNums1.length>arrNums2.length) { printArray(arrNums1); printArray(arrNums2); } else { printArray(arrNums2); printArray(arrNums1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t...
[ "0.79226714", "0.7779714", "0.76784766", "0.7598401", "0.75667435", "0.7476025", "0.74279404", "0.74054825", "0.7355616", "0.73555684", "0.7308912", "0.7300225", "0.7295098", "0.7259177", "0.7246119", "0.7245488", "0.7238886", "0.72303075", "0.7222786", "0.71794856", "0.71515...
0.0
-1
different amount of parameters
ConstuctorOverloading(){ System.out.println("I am non=argument constructor"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Result mo5059a(Params... paramsArr);", "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = ne...
[ "0.6538159", "0.65279377", "0.6457131", "0.6296612", "0.6270992", "0.62334883", "0.6198136", "0.6198136", "0.61628026", "0.6160355", "0.6147325", "0.613405", "0.61242163", "0.608304", "0.6078045", "0.60770154", "0.60713655", "0.6030145", "0.6011525", "0.6007235", "0.59897166"...
0.0
-1
having different type of parameters
ConstuctorOverloading(int num){ System.out.println("I am contructor with 1 parameter"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object getTypedParams(Object params);", "public interface Params {\n }", "public abstract String paramsToString();", "private static void a(Object param0, Class<?> param1) {\n }", "BParameterTyping createBParameterTyping();", "public int a(String paramString, int paramInt1, int param...
[ "0.67040074", "0.62831986", "0.6140187", "0.5989621", "0.5977002", "0.59387815", "0.59189093", "0.59155315", "0.58411527", "0.58411527", "0.58251274", "0.5800986", "0.5797969", "0.57931036", "0.577956", "0.5750967", "0.57316744", "0.57078236", "0.5696506", "0.56539315", "0.56...
0.0
-1
This is static because the CheckerThread will use it.
public void launch(boolean showHide){ visibility = showHide; SetupWindow(visibility); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void run() {\n\t\t\tcheck();\n\t\t}", "public IgniteThread checkpointerThread() {\n return checkpointerThread;\n }", "private ThreadUtil() {\n \n }", "private SingletonDoubleCheck() {}", "private ThreadUtil() {\n }", "public final void putSelfInCheck() {\n\t\t...
[ "0.66063035", "0.6579965", "0.63881665", "0.605359", "0.5956032", "0.5892935", "0.58222824", "0.5806798", "0.5806798", "0.57720226", "0.57571465", "0.569249", "0.56823117", "0.5664168", "0.56385654", "0.5632289", "0.5631284", "0.56161445", "0.56126755", "0.55899805", "0.55664...
0.0
-1
Tells if the response contains object.
public boolean hasObject(){ return _object != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "boolean hasGenericResponse();", "p...
[ "0.7244062", "0.7244062", "0.7244062", "0.7244062", "0.7244062", "0.7244062", "0.7244062", "0.71908224", "0.685573", "0.682489", "0.6674039", "0.66646487", "0.66378605", "0.66378605", "0.66378605", "0.66378605", "0.66378605", "0.66378605", "0.66378605", "0.66378605", "0.66378...
0.7035561
8
Update CrystalThrowShard damage / NOTE "if(c instanceof Crystal_Needle_Rain)" did NOT work.
@Override public void receivePostDraw(AbstractCard c) { if (c.cardID.equals("Crystal_Needle_Rain")) // TODO: Fix damage to be green on card; change damage not // baseDamage somehow c.baseDamage = c.baseMagicNumber * Crystal_Needle_Rain.countShards(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public void takeDamage(double damage){\n damage ...
[ "0.60728765", "0.6001775", "0.5993675", "0.5954932", "0.59362364", "0.59228444", "0.5921377", "0.58990717", "0.5864842", "0.5847589", "0.5804342", "0.5736712", "0.57124674", "0.5708561", "0.5680796", "0.56756485", "0.56326884", "0.56274074", "0.56111836", "0.55979854", "0.559...
0.66016775
0
Calculate damage based off skill chosen and return that number. Choosing is done differently for AI and human, hence abstract method.
public Skills chooseSkill();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "AbilityDamage getAbilityDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "public int giv...
[ "0.7384322", "0.7086563", "0.70719165", "0.70719165", "0.70719165", "0.70719165", "0.70719165", "0.6961424", "0.6829015", "0.6803174", "0.6757757", "0.67418605", "0.6691172", "0.6625751", "0.66131294", "0.6609749", "0.65977615", "0.65952444", "0.657735", "0.65729505", "0.6522...
0.0
-1
Adjust damage for the playable type.
public void updateHp(double amount);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "@Override\n public void adjustTypeAttributes() {\n this.getSpecialData().addAttribute(SharedMonsterAttributes.maxHealth, 20.0);\n ...
[ "0.7113753", "0.6867221", "0.6853873", "0.6838226", "0.68118596", "0.6730095", "0.67150915", "0.66446364", "0.6633176", "0.6632358", "0.66083163", "0.65719885", "0.65702045", "0.6558166", "0.6554828", "0.65341085", "0.650239", "0.6468076", "0.645376", "0.6449674", "0.6440702"...
0.0
-1
Accessor for isSleeping boolean.
public boolean isAwake();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSleeping ( ) {\n\t\treturn extract ( handle -> handle.isSleeping ( ) );\n\t}", "public boolean isInSleep() {\n\t\treturn isInSleep;\n\t}", "public int isSleeping(){\n\t\tif(state == \"SLEEPING\") { return 1; }\n\t\telse\t\t\t\t\t { return 0; }\n\t}", "public boolean isSleepy() {\n\t\treturn...
[ "0.841763", "0.8229887", "0.8046251", "0.7795633", "0.7617495", "0.75117487", "0.75087994", "0.7460968", "0.7398081", "0.71443343", "0.7103829", "0.65950215", "0.65370953", "0.65017825", "0.64782894", "0.6401079", "0.63203335", "0.6292837", "0.6242816", "0.621873", "0.6205017...
0.5590071
83
Sets HP to 100
public void resetHp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHP(int hp) {\r\n\t\tthis.hp += hp;\r\n\t}", "void setCurrentHP(final int newHP);", "public void setHp(int hp){\r\n this.hp = hp;\r\n }", "public void setHP(int h)\n\t{\n\t\tiHP = h;\n\t\t\n\t}", "public void setHp(int hp) {\r\n\t\tthis.hp = hp;\r\n\t}", "public void setHP(int new...
[ "0.8447767", "0.8088259", "0.799287", "0.79148495", "0.7868957", "0.7833635", "0.78012806", "0.7797556", "0.7736012", "0.76656353", "0.7614449", "0.76012766", "0.74871325", "0.74840933", "0.74740076", "0.7467302", "0.73964244", "0.7343653", "0.732149", "0.73001754", "0.726298...
0.65316415
59
Gets the player's pet name
public String getPetName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getPetName() {\n return localPetName;\n }", "public String getName(Player p) {\n\t\treturn name;\n\t}", "String getPlayerName();", "public String getPlayerName() {\n return props.getProperty(\"name\");\n }", "public String getPlayerName() {\n\t\tString na...
[ "0.8303329", "0.76610124", "0.7600661", "0.74245536", "0.7372069", "0.73610514", "0.7340695", "0.7324473", "0.73129815", "0.72125876", "0.72068316", "0.7196067", "0.71703243", "0.71559024", "0.71040833", "0.70811313", "0.7069732", "0.705333", "0.70144385", "0.70068616", "0.69...
0.81064487
1
Returns the predicted skill for Shoot the Moon.
public Skills getSkillPrediction();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSkill() {\n\t\treturn skill;\n\t}", "public abstract SkillData skill();", "public Skills getChosenSkill();", "protected Skill getNpcSuperiorBuff()\r\n\t{\n\t\treturn getSkill(15649, 1); //warrior\r\n//\t\treturn getSkill(15650, 1); //wizzard\r\n\t}", "public com.transerainc.aha.gen.agent.S...
[ "0.6505379", "0.61431134", "0.61131835", "0.6107633", "0.6054685", "0.60296065", "0.60265476", "0.59545887", "0.5951197", "0.5877104", "0.5817007", "0.58145106", "0.5799047", "0.57744986", "0.5688616", "0.56761783", "0.56539667", "0.5644361", "0.5604374", "0.557346", "0.55527...
0.7256877
0
Returns the predicted skill for Shoot the Moon.
public void setSkillPrediction(Skills skill);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Skills getSkillPrediction();", "public String getSkill() {\n\t\treturn skill;\n\t}", "public abstract SkillData skill();", "public Skills getChosenSkill();", "protected Skill getNpcSuperiorBuff()\r\n\t{\n\t\treturn getSkill(15649, 1); //warrior\r\n//\t\treturn getSkill(15650, 1); //wizzard\r\n\t}", ...
[ "0.7258827", "0.65089107", "0.6145518", "0.6115789", "0.6108448", "0.6057829", "0.6029606", "0.59578097", "0.5954527", "0.5880226", "0.58186686", "0.5818", "0.58016413", "0.5777293", "0.568844", "0.5678911", "0.5654353", "0.56470865", "0.5607549", "0.557661", "0.555536", "0...
0.6032171
6
Returns the full HP.
public double getPlayerFullHP();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCurrentHP();", "public int getHP() {\n\t\treturn HP;\n\t}", "public double getHp() {\n return hp;\n }", "public int getHp() {\n return hp;\n }", "public int getHp() {\r\n return hp;\r\n }", "public int getHp() {\n return hp;\n }", "public int getHP()\n\t{\n\t\tr...
[ "0.7889993", "0.78747404", "0.7739067", "0.7620524", "0.7618287", "0.76059234", "0.75949657", "0.7588848", "0.7497314", "0.74410635", "0.7421068", "0.7421068", "0.7421068", "0.7421068", "0.7421068", "0.7421068", "0.7395837", "0.7373338", "0.7325178", "0.7311519", "0.72332835"...
0.7925886
0
Gets the recharge time on a skill
public int getSkillRechargeTime(Skills currentSkill);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRechargeTime(Skills skill, int time);", "Double getRemainingTime();", "public void setRechargeTime(int time)\n {\n\t rechargeTime = time;\n }", "Expression getReaction_time_parm();", "public int getRecitationTime(){\n\t\treturn this.recitationTime;\n\t}", "public double getHoldTime();",...
[ "0.70548075", "0.63025826", "0.6253829", "0.6240904", "0.62404543", "0.6208039", "0.61208135", "0.60257107", "0.6024159", "0.6003788", "0.5990477", "0.59890175", "0.5975", "0.59431076", "0.593416", "0.59070086", "0.5904422", "0.58833", "0.58634317", "0.58634317", "0.5837457",...
0.86088926
0
Percentage of the current HP to the full HP
public double calculateHpPercent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getPercentHealth();", "float getBonusPercentHP();", "int getPercentageHeated();", "public double getPlayerFullHP();", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "public float getBonusPercentHP() {\n return bonusPercentHP_;\n }", "int getCurrentHP();", ...
[ "0.8109346", "0.78975004", "0.7350045", "0.7304546", "0.7130172", "0.7044135", "0.6986348", "0.69757783", "0.6974524", "0.69273996", "0.68993616", "0.68758684", "0.68679184", "0.68619895", "0.68543684", "0.68409985", "0.6795609", "0.6760471", "0.6749291", "0.67429", "0.673378...
0.84321505
0
Sets the recharge time for a specific skill to a specific recharge time
public void setRechargeTime(Skills skill, int time);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRechargeTime(int time)\n {\n\t rechargeTime = time;\n }", "public int getSkillRechargeTime(Skills currentSkill);", "public void setRedeemedTime(Date redeemedTime) {\n this.redeemedTime = redeemedTime;\n }", "public void setTime(Time time) {\n this.time = time; // as...
[ "0.7727199", "0.6464453", "0.5993698", "0.5873295", "0.58728194", "0.58591104", "0.58542335", "0.584353", "0.57527876", "0.57338923", "0.57271826", "0.5707319", "0.5697807", "0.56974924", "0.569731", "0.56692016", "0.56339103", "0.55923605", "0.55923426", "0.55858135", "0.558...
0.8936087
0
Decrement the recharge times of all skills in the list
public void decrementRechargeTimes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{\n\t\t\t\trechargingOpponentSkills.put(s, --val);\n\t\t\t}\n\t\t}\n\t}", ...
[ "0.8531305", "0.6472649", "0.6373559", "0.6312256", "0.6114162", "0.6093848", "0.59353197", "0.59260225", "0.59260225", "0.5916076", "0.5905932", "0.5860902", "0.58459586", "0.5824553", "0.5763422", "0.57157606", "0.5708857", "0.57014465", "0.5689758", "0.56545573", "0.560331...
0.8015304
1
Reset the status of a playable
public void reset();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() {\n mMediaPlayer.reset();\n setPlayerState(State.IDLE);\n }", "void reset() {\n\t\tsongs.get(curSong).rewind();\n\t\tsongs.get(curSong).pause();\n\t}", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that t...
[ "0.7170679", "0.69712913", "0.682024", "0.6812222", "0.667307", "0.66453016", "0.66435266", "0.65806407", "0.64732444", "0.6453693", "0.64509594", "0.6447581", "0.6446546", "0.643381", "0.63765925", "0.63705903", "0.63528126", "0.634251", "0.6335074", "0.6320266", "0.6316616"...
0.0
-1
Get the most recent chosen skill
public Skills getChosenSkill();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHighestCombatSkill() {\r\n int id = 0;\r\n int last = 0;\r\n for (int i = 0; i < 5; i++) {\r\n if (staticLevels[i] > last) {\r\n last = staticLevels[i];\r\n id = i;\r\n }\r\n }\r\n return id;\r\n }", "Question...
[ "0.6256682", "0.62187415", "0.59974897", "0.5978891", "0.58995587", "0.5886109", "0.5868843", "0.58684075", "0.58507997", "0.5796231", "0.575883", "0.5665246", "0.56478494", "0.56172514", "0.55152", "0.5494056", "0.5461567", "0.54353124", "0.5423448", "0.5408343", "0.54014885...
0.6660836
0
Get the player type.
public PlayerTypes getPlayerType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPlayerType() {\r\n return playerType;\r\n\t}", "public int getPlayerType() {\r\n\t\treturn Player.RANDOM_PLAYER;\r\n\t}", "@Override\n\tpublic PlayerType getPlayerType() {\n\t\treturn PlayerType.COMPUTER;\n\t}", "@Override\n public PlayerType getPlayerType(int player) {\n if...
[ "0.8473364", "0.76284903", "0.73377967", "0.7250887", "0.7055517", "0.7041719", "0.69931585", "0.6838364", "0.65337515", "0.6525413", "0.6504234", "0.6431779", "0.6410771", "0.6346397", "0.6298465", "0.6280461", "0.623957", "0.62326974", "0.62326974", "0.62326974", "0.6232697...
0.87039226
0
DatabaseReference cambien1=states.child("CAM_BIEN_1"); DatabaseReference cambien2=states.child("CAM_BIEN_2"); DatabaseReference cambien3=states.child("CAM_BIEN_3"); DatabaseReference cambien4=states.child("CAM_BIEN_4"); led1
@Override public void onDataChange(DataSnapshot dataSnapshot) { if (dataSnapshot.child("states").child("CAM_BIEN_1").getValue().toString().equalsIgnoreCase("true")){ led1.setText("led1 on"); }else led1.setText("led1 off"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void iniciarBaseDeDatos(){\n db_reference = FirebaseDatabase.getInstance().getReference();\n\n }", "private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatab...
[ "0.62258464", "0.5850361", "0.57551247", "0.5744646", "0.55636644", "0.54460925", "0.54324245", "0.5430066", "0.5417742", "0.5411692", "0.5405658", "0.5404692", "0.5403919", "0.53952885", "0.53907573", "0.538094", "0.53484905", "0.53422534", "0.53173274", "0.53069234", "0.529...
0.6723049
0
Extracts a private key from a Java Keystore and then encrypts it (with hybrid public key encryption). If signing key is specified the encrypted private key is additionally signed with that key and the output is a zip file containing the signature and the encrypted private key. If the signing key uses algorithm differen...
public void run( String encryptionPublicKeyHex, String outputFile, KeystoreKey keyToExport, Optional<KeystoreKey> keyToSignWith, boolean includeCertificate) throws Exception { KeyStore keyStoreForKeyToExport = keystoreHelper.getKeystore(keyToExport); PrivateKey privateKeyToEx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private ...
[ "0.53460294", "0.522363", "0.5222903", "0.5153686", "0.5135491", "0.50522774", "0.5011925", "0.50032526", "0.5002739", "0.49854088", "0.49385667", "0.4895979", "0.48754382", "0.4874943", "0.48455566", "0.4818589", "0.48140934", "0.48047572", "0.4792206", "0.47802606", "0.4735...
0.54110026
0
/ Business Patch Download Listener
@Override public void onBusinessPatchDownloadSuccess() { UPLogUtils.d(TAG, ">> patch file download successful."); handler.sendEmptyMessage(MSG_RELOAD_REACT_ROOT_VIEW); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "public void download() {\n }", "public void download(BillDownloadEventNotification eventNotification) throws Exception {\n\t\tStopWatch timer = new StopWatch();\n\t\ttimer.start();\n\t\t\n\t\tOLBBillDownloadRequest request = null;\n\t\tboolean successf...
[ "0.6495846", "0.6241359", "0.6164688", "0.6129921", "0.60769427", "0.60271883", "0.6016028", "0.5992772", "0.59641415", "0.5938095", "0.59123176", "0.58932954", "0.58522546", "0.5852227", "0.5848862", "0.583575", "0.5831377", "0.5791139", "0.5773639", "0.57641923", "0.5757833...
0.6919005
0
Sends an email reminder for a task.
void sendEmail(Task task, String taskTypeName, String plantName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendNotification(String task, int id) {\n NotificationCompat.Builder builder = new NotificationCompat.Builder(getApplicationContext());\n builder.setContentTitle(\"Amigo ToDo Manager\");\n builder.setContentText(task);\n\n //Create a pending intent to attach with the notif\n...
[ "0.60378903", "0.5970768", "0.5908244", "0.5745436", "0.5689414", "0.5651435", "0.56494474", "0.56328756", "0.5604484", "0.55913526", "0.5576399", "0.5561909", "0.5550311", "0.55389524", "0.5509625", "0.5502776", "0.54958224", "0.54931414", "0.5488427", "0.547047", "0.5411637...
0.72645867
0
The backend contract for sending Marquez instrumentation. Information operations can be sent synchronously or asynchronously over various protocols
public interface Backend extends Closeable { void put(String path, String json); default void post(String path) { post(path, null); } void post(String path, @Nullable String json); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.544 -0500\", hash_original_method = \"42BD69B2114459AD691B3AEBDAE73546\", hash_generated_method = \"C285A4D23EAB85D82915D70E1F66F84C\")\n \npublic Message sendM...
[ "0.6022303", "0.59727466", "0.58507776", "0.58081865", "0.5795497", "0.5778109", "0.57634157", "0.57557815", "0.57501173", "0.56923366", "0.5663756", "0.56560576", "0.56410843", "0.5622467", "0.55937576", "0.55328935", "0.5514257", "0.5485159", "0.5484039", "0.54813147", "0.5...
0.0
-1
Function to find smallest window containing all distinct characters
static String findSubString(String str) { int n = str.length(); // Count all distinct characters. int dist_count = 0; boolean[] visited = new boolean[MAX_CHARS]; Arrays.fill(visited, false); for (int i=0; i<n; i++) { if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String minWindowCaseII(String s, String t) {\n if(s.length() == 0 || t.length() == 0) {\n return \"\";\n }\n\n HashMap<Character, Integer> uniqueCharsInT = new HashMap<>();\n HashMap<Character, Integer> uniqueCharsInCurrWindowInS = new HashMap<>();\n\n f...
[ "0.76478815", "0.7391431", "0.7223348", "0.68603253", "0.68307173", "0.68225163", "0.6800904", "0.66722345", "0.667093", "0.6665123", "0.66637677", "0.66617584", "0.6586895", "0.6468341", "0.6422334", "0.6410915", "0.63897854", "0.63881", "0.6375989", "0.6311447", "0.6265262"...
0.5634658
44
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Remove o Cliente do SPACE se ele existir
public boolean removeClient(String nickname) { try{ // Implementacao JavaSpaces // if(space != null){ // // Client client = new Client(nickname); // Client clientFromSpace = (Client) space.take(client, null, Long.MAX_VALUE); // Client clientFromMap = clients.get(nickname); // // if (!clientExist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String remove() \n {\n //TODO\n return \"\";\n }", "protected final void removeChar()\n\t{\n\t\tif (showCaret && displayingCaret)\n\t\t{\n\t\t\tif (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \"|\");\n\t\t}\n\t\telse if (text.get...
[ "0.5827178", "0.58132184", "0.57846075", "0.5726527", "0.57236177", "0.5644165", "0.5605464", "0.55733466", "0.55721813", "0.54202974", "0.54089725", "0.538114", "0.5346422", "0.53405833", "0.5307963", "0.5281287", "0.52695084", "0.52588534", "0.52587825", "0.5257648", "0.523...
0.0
-1
Adiciona a sala no SPACE se ela nao existir
public boolean addRoom(String roomName) { try{ if(rooms.contains(roomName)){ // ja existe return false; } return rooms.add(roomName); } catch (Exception e) { System.err.println(e.getMessage()); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adicionar(Pessoa pessoa){\n adicionar(raiz, pessoa);\n }", "public void insere (String nome)\n {\n //TODO\n }", "public String insertEscuela(Escuela escuela){\n String regInsertado = \"Registro Escuela #\";\n long contador = 0;\n\n SQLiteDatabase db = thi...
[ "0.55576766", "0.5548984", "0.54823333", "0.54382175", "0.5412492", "0.5303732", "0.529651", "0.52943766", "0.52525836", "0.52474576", "0.5190563", "0.51899165", "0.516305", "0.516128", "0.5134511", "0.5132409", "0.51272106", "0.51245344", "0.5119508", "0.5118936", "0.5116885...
0.0
-1
Remove a sala do SPACE se ela existir
public boolean delRoom(String roomName) { try{ if (rooms.remove(roomName)) { return true; } } catch (Exception e) { System.err.println(e.getMessage()); return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String removeSpace(String a){\n String b = \" \"; //STRING TO MAKE PALINDROME TEST\n for(int i =0; i<a.length();i++){ //WORK FOR MORE CASES\n if((int)a.charAt(i)==(int)b.charAt(0))\n a=a.substring(0,i)+a.substring(i+1);\n ...
[ "0.6759133", "0.65202814", "0.6216902", "0.61561173", "0.6070976", "0.606", "0.60290575", "0.6029003", "0.60168576", "0.5997784", "0.59586585", "0.5957908", "0.59537715", "0.59268314", "0.58822256", "0.5865547", "0.5848385", "0.58142835", "0.5812166", "0.5761894", "0.56890446...
0.0
-1
Muda o cliente de sala
public boolean changeClientRoom(String clientName, String roomName) { try{ if(!rooms.contains(roomName)){ // Ja existe return false; } Client clientFromMap = getClient(clientName); if (!clientExists(clientFromMap)) { return false; } clientFromMap.setRoom(roomName); return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void grabarCliente(){\n RequestParams params = new RequestParams();\n params.put(\"nombre\",edtNombre.getText().toString().trim());\n params.put(\"apellido\",edtApellido.getText().toString().trim());\n params.put(\"correo\", edtCorreo.getText().toString().trim());\n String claveM...
[ "0.7117037", "0.69854295", "0.6812915", "0.6792957", "0.6746365", "0.6726394", "0.67181", "0.6642227", "0.6620709", "0.65338016", "0.64890736", "0.645106", "0.6435881", "0.6431414", "0.6421196", "0.63926005", "0.63800615", "0.636778", "0.6366933", "0.6366601", "0.6353908", ...
0.0
-1
Get paths and their lengths from beginning of graph to node
@Override protected List<CriticalNode<N>> constructQueues(Collection<N> allNodes, Collection<L> allLinks, Collection<List<N>> allPaths, GraphPathsData<N> graphPathsData) { List<Pair<List<N>, PathLength>> pathWithLengthPairs = GraphPathsData.computeLengthsOfPaths( lengthComputer, allPaths, al...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable...
[ "0.73818815", "0.73223513", "0.68745315", "0.67324305", "0.65160257", "0.64007324", "0.6221647", "0.6192103", "0.6174242", "0.6164022", "0.61080354", "0.6106584", "0.60704845", "0.6050188", "0.6043456", "0.6041961", "0.6019479", "0.59873176", "0.5986201", "0.5974214", "0.5963...
0.0
-1
Initialize your data structure here.
public MyStack() { q=new LinkedList<Integer>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n }", "private void initData() {\n\t}", "private void initData() {\n\n }", "public void initData() {\n }", "public void initData() {\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\...
[ "0.79946685", "0.7973242", "0.7808862", "0.77763873", "0.77763873", "0.7643394", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.76371324", "0.75553316", "0.7543321", "0.7543321", "0.75426376", "0.75426376", "0.75426376", "0.7532583", "0.75228804", "0...
0.0
-1
Push element x onto stack.
public void push(int x) { int size=q.size(); q.offer(x); for(int i=0;i<size;i++){ q.offer(q.poll()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(int x) {\n stack.add(x);\n }", "public void push(int x) {\r\n inStack.push(x);\r\n }", "public void push(int x) {\n this.stack1.add(x);\n }", "public void push(int x) {\n pushStack.add(x);\n }", "public void push(int x) {\n\t\tstack.push(x);\n\t}", ...
[ "0.86726034", "0.85932225", "0.85570914", "0.8550038", "0.852482", "0.8498592", "0.8488227", "0.8461912", "0.8458076", "0.8428038", "0.8376653", "0.8370226", "0.8368897", "0.8343204", "0.83385926", "0.8335069", "0.8333074", "0.83219844", "0.83110696", "0.8299808", "0.82648236...
0.76382875
62
Removes the element on top of the stack and returns that element.
public int pop() { return q.poll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = ...
[ "0.7831054", "0.78167725", "0.7808246", "0.7797564", "0.7689596", "0.7677747", "0.7633739", "0.76071864", "0.7598945", "0.7597015", "0.7577195", "0.75743157", "0.75456405", "0.75169796", "0.750027", "0.74873495", "0.74667877", "0.7460093", "0.74569875", "0.7456191", "0.744837...
0.0
-1
Get the top element.
public int top() { return q.peek(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int top() {\n return topElem;\n }", "public E top() {\n return !isEmpty() ? head.item : null;\n }", "public int topElement() {\n\t\tif(isEmpty()){\n\t\t\tthrow new AssertionError();\n\t\t}\n\t\telse {\n\t\t\treturn heap.get(0).element;\n\t\t\n\t\t}\n\t}", "public T getTop( ...
[ "0.8335391", "0.79349744", "0.77535766", "0.77485377", "0.7694716", "0.7643979", "0.76287264", "0.76287264", "0.7621167", "0.76107985", "0.7589793", "0.75735", "0.75697887", "0.75568175", "0.7533656", "0.7494104", "0.7478269", "0.7464191", "0.7455398", "0.7447233", "0.7420317...
0.7304828
28
Returns whether the stack is empty.
public boolean empty() { if(q.size()==0) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean emptyStack() {\n return (expStack.size() == 0);\n }", "public boolean isEmpty()\n {\n return stack.size() == 0;\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isEmpty()\n {\n return stack.isEmpty();\n }", "publi...
[ "0.9056883", "0.89877164", "0.8927279", "0.8913691", "0.88952327", "0.8861644", "0.8812663", "0.8803307", "0.8803307", "0.88012934", "0.8762096", "0.87552625", "0.8734233", "0.8733799", "0.8713177", "0.87054056", "0.869478", "0.8679571", "0.866394", "0.86360806", "0.8620381",...
0.0
-1
BASE CASE ROOT == NULL RETURN THE NODE WITH THA VALUE VAL
public static Node insert(Node root, int val) { if (root == null) { return new Node(val); } else { //IF THE VALUE ROOT IS GREATER THEN THE VAL //GO TO LEFT //AND CALL INSERT METHOD (IF NULL ADD A NEW NODE WITH THE VALUE VAL) if (val <= root.dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }", "boolean getTreeNodeIdNull();", "public Node findNode(E val) {\n\t\tif (val == null) return null;\n\t\treturn findNode(root, val);\n\t}", "static int nullNode() {\n\t\tretu...
[ "0.6706979", "0.670551", "0.64149773", "0.6384991", "0.63576734", "0.63189864", "0.6288456", "0.6249935", "0.62087566", "0.6143577", "0.6075766", "0.6018183", "0.5992836", "0.5954858", "0.5934497", "0.59286565", "0.5921635", "0.59024405", "0.5897715", "0.58968043", "0.5890664...
0.0
-1
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
public ShardBriefInfo(ShardBriefInfo source) { if (source.ShardSerialId != null) { this.ShardSerialId = new String(source.ShardSerialId); } if (source.ShardInstanceId != null) { this.ShardInstanceId = new String(source.ShardInstanceId); } if (source.Status...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "void set(K key, V value);", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "public abstract void set(String k...
[ "0.6440425", "0.6415443", "0.6145525", "0.61172885", "0.609467", "0.60810256", "0.60422385", "0.5990364", "0.59736174", "0.59564006", "0.58394885", "0.58277106", "0.5790857", "0.5705316", "0.57027704", "0.56880087", "0.5686415", "0.56781363", "0.5608639", "0.5590083", "0.5582...
0.0
-1
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "ShardSerialId", this.ShardSerialId); this.setParamSimple(map, prefix + "ShardInstanceId", this.ShardInstanceId); this.setParamSimple(map, prefix + "Status", this.Status); this.setParamSimpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public ...
[ "0.6257116", "0.6217437", "0.60246235", "0.59824973", "0.59655595", "0.59334373", "0.5920432", "0.5834765", "0.5781523", "0.57761115", "0.57761115", "0.57761115", "0.57761115", "0.57761115", "0.57761115", "0.57749873", "0.57062346", "0.57006085", "0.5652159", "0.56490135", "0...
0.0
-1
Constructor de la clase.
public Chatbot(int seed) { // La mercancia es independiente de la personalidad del chatbot. merchandise = " Escudo Rubi: 1500 flurios \n Espadon Escarlata: 1750 flurios \n Tomo de Combustion Espontanea: 1000 flurios \n Piedra Draconica Celeste: 250...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public Pasien() {\r\n }", "public Clade() {}", "public Chauffeur() {\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Lanceur() {\n\t}", "public Curso() {\r\n }", "public SlanjePoruke...
[ "0.84580785", "0.81139696", "0.7603627", "0.76031476", "0.75563073", "0.7515485", "0.74785274", "0.7436049", "0.74332494", "0.74311197", "0.7430948", "0.74177736", "0.7370177", "0.7365857", "0.73601496", "0.73450327", "0.7335323", "0.73073775", "0.72908056", "0.7259841", "0.7...
0.0
-1
/ Method is for running ONLY the calculator
public static void main(String[] args) { BaseCalc calc = new BaseCalc(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(cal...
[ "0.7271144", "0.7176208", "0.6987805", "0.69577837", "0.6817363", "0.6780476", "0.6765292", "0.67175955", "0.6714473", "0.6679081", "0.66555876", "0.66535366", "0.6641523", "0.6609151", "0.6606186", "0.659105", "0.65727794", "0.6566841", "0.65463376", "0.6543473", "0.6541423"...
0.0
-1
TODO Autogenerated method stub
@Override public List<AlmacenDTO> listarEntrada() { List<AlmacenDTO> data = new ArrayList<AlmacenDTO>(); AlmacenDTO obj = null; Connection cn = null; PreparedStatement pstm = null; ResultSet rs = null; try { cn = new MySqlDbConexion().getConexion(); String sql = "select me.codigo_entrada,p.nombre_pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int insertarEntrada(AlmacenDTO obj) { int rs=-1; Connection con=null; PreparedStatement pst=null; try { con=new MySqlDbConexion().getConexion(); String sql="insert into MATERIAL_ENTRADA values (null,?,?,?)"; pst=con.prepareStatement(sql); pst.setInt(1,obj.getCodigo_producto());...
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<AlmacenDTO> listarSalida() { List<AlmacenDTO> data = new ArrayList<AlmacenDTO>(); AlmacenDTO obj = null; Connection cn = null; PreparedStatement pstm = null; ResultSet rs = null; try { cn = new MySqlDbConexion().getConexion(); String sql = "select me.codigo_salida,p.nombre_produ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int insertarSalida(AlmacenDTO obj) { int rs=-1; Connection con=null; PreparedStatement pst=null; try { con=new MySqlDbConexion().getConexion(); String sql="insert into MATERIAL_SALIDA values (null,?,?,?)"; pst=con.prepareStatement(sql); pst.setInt(1,obj.getCodigo_producto());...
{ "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
Do a null check to confirm that we have not already instantiated the map.
private boolean setUpMapIfNeeded() { if (mMap == null) { // Try to obtain the map from the SupportMapFragment. mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)) .getMap(); if (mMap == null) { Log.e(TAG, "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the ma...
[ "0.6955925", "0.6913731", "0.6830662", "0.682812", "0.67842364", "0.6771816", "0.67221147", "0.66862106", "0.66731143", "0.66731143", "0.66731143", "0.6671271", "0.66408885", "0.65998966", "0.65788347", "0.6572352", "0.6562833", "0.6547767", "0.6538817", "0.6522924", "0.65099...
0.61415684
55
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615...
0.0
-1
/ renamed from: a
private static final Account m22607a(IBinder iBinder) { scb scb; if (iBinder == null) { return null; } IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.common.internal.IAccountAccessor"); if (queryLocalInterface instanceof scb) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final Account mo17822a() { return m22607a(this.f30231e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final void mo17823a(Collection collection) { this.f30232f = (Scope[]) collection.toArray(new Scope[collection.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
todo: timestamp necessary? pauses task and returns time from when to resume
public String pause(final String id) { log.debug("Pause task[%s]", id); try { final FullResponseHolder response = submitRequestWithEmptyContent( id, HttpMethod.POST, "pause", null, true ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resume()\r\n {\n timerStart(); // ...Restarts the update timer.\r\n }", "public void resume() {}", "public void resume()\r\n {\r\n\t timer.start();\r\n }", "void resume();", "void resume();", "void resume();", "public void resume();", "@Override\n\tpublic ...
[ "0.6877578", "0.68712705", "0.6816398", "0.67645425", "0.67645425", "0.67645425", "0.6717443", "0.666609", "0.66002154", "0.65592444", "0.6484822", "0.64609873", "0.64556223", "0.64556223", "0.64556223", "0.64383423", "0.6434319", "0.6428111", "0.6428111", "0.6428111", "0.642...
0.0
-1
All below query are same. Derived quries
List<Menu> findByHotelHotelName(String hotelName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }", "public void testProductInstanceAttributeQuery() {\n\n String\tsql\t= \"SELECT p.M_Product_ID, p.Discontinued, p.Value, p....
[ "0.57991016", "0.54225165", "0.5281627", "0.52330065", "0.519648", "0.51907754", "0.51642334", "0.5155655", "0.5114563", "0.5112948", "0.50837016", "0.5079546", "0.5068534", "0.5046697", "0.50263953", "0.5013427", "0.5010049", "0.5010049", "0.5010049", "0.4988944", "0.4971271...
0.0
-1
Creates an empty value label.
@UiConstructor public ValueLabel(Renderer<? super T> renderer) { super(true); this.renderer = renderer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}", "public LLabel() {\n this(\"\");\n }", "private void checkLabelValue()\n\t{\n\t\tif(labelValue != null && !\"\".equals(labelValue))\n\t\t{\n\t\t\tlabelValue += \": \";\n\t\t}\n\t}", "public Label(String name, Integer value)\n {\n this...
[ "0.702073", "0.6608589", "0.65852106", "0.6529148", "0.6497771", "0.63607424", "0.6281191", "0.6281191", "0.6281191", "0.624562", "0.6202586", "0.61819357", "0.6175813", "0.6116183", "0.6099655", "0.60829306", "0.6058069", "0.603625", "0.6016453", "0.5956221", "0.595286", "...
0.54922557
57
This constructor may be used by subclasses to explicitly use an existing element. This element must be either a or a element.
protected ValueLabel(Element element, Renderer<? super T> renderer) { super(element); this.renderer = renderer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element() {\n\t}", "public ElementObject(WebElement element) {\n // check null value\n super(0); //0 : Element is THERE\n this.element = element;\n this._originalStyle = element.getAttribute(\"style\");\n }", "public WebElement() {}", "@Override\n\tpublic void setElement(Elem...
[ "0.70573956", "0.6995396", "0.681529", "0.68078965", "0.6713484", "0.66514236", "0.6583302", "0.654746", "0.64980215", "0.6490908", "0.64513093", "0.6443439", "0.63976973", "0.636328", "0.6354255", "0.6308885", "0.62694913", "0.6236374", "0.6229554", "0.6207725", "0.61965287"...
0.0
-1
Lista los Subproductos de la base de datos
public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Product> getFullProductList(){\n\t\t/*\n\t\t * La lista dei prodotti da restituire.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\t\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella PRODOTTO.\n\t\t */\n\t\tStatement productStm = null;\n\t\tResultSet productRs = null;\n\t\t...
[ "0.70116025", "0.683584", "0.67041373", "0.6637824", "0.6559707", "0.6541507", "0.64674515", "0.6445422", "0.6241787", "0.61828333", "0.6179217", "0.6137582", "0.6137582", "0.6137582", "0.61367935", "0.6134282", "0.6134282", "0.6097833", "0.6085966", "0.6062517", "0.6047812",...
0.7174386
0
Registra un Subproducto en la base de datos
public abstract void registrarSubproducto(EntityManager sesion, Subproducto subproducto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registrarSolicitudOficioBien(SolicitudOficioBienDTO solicitudOficioBienDTO) {\n\n // Fecha solicitud\n solicitudOficioBienDTO.setFechaSolicitud(Calendar.getInstance().getTime());\n SolicitudOficioBien solicitudOficioBien = SolicitudOficioBienHelper.toLevel1Entity(solicitudOficioBi...
[ "0.6473067", "0.64294624", "0.6422371", "0.6319224", "0.63140106", "0.63115835", "0.6305015", "0.62607867", "0.6238294", "0.6238294", "0.6207064", "0.6185826", "0.6165606", "0.6143596", "0.60885936", "0.5987958", "0.5948233", "0.5942524", "0.59415406", "0.59372663", "0.593621...
0.8132321
0
Actualiza un Subproducto en la base de datos
public abstract void actualizarSubproducto(EntityManager sesion, Subproducto subproducto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void registrarSubproducto(EntityManager sesion, Subproducto subproducto);", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\...
[ "0.71605414", "0.6420588", "0.63913023", "0.6346628", "0.6295262", "0.6270896", "0.61532617", "0.61507475", "0.6043073", "0.59752876", "0.59724647", "0.59678155", "0.59532696", "0.5952605", "0.5921748", "0.59196466", "0.59062093", "0.5867303", "0.5866218", "0.5846038", "0.583...
0.7920868
0
Elimina un Subproducto en la base de datos
public abstract void eliminarSubproducto(EntityManager sesion, Subproducto subproducto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //-----...
[ "0.71182114", "0.7061118", "0.6992356", "0.6954352", "0.69071454", "0.6896218", "0.6832707", "0.6825208", "0.6805964", "0.68047345", "0.6746262", "0.6715274", "0.6713356", "0.67106104", "0.6632105", "0.663209", "0.6621044", "0.6615705", "0.66148865", "0.661238", "0.6597068", ...
0.7989711
0
Gets the "Get_Status_All_Monitors" element
public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors getGetStatusAllMonitors() { synchronized (monitor()) { check_orphaned(); net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors target = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors addNewGetStatusAllMonitors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors targe...
[ "0.67841905", "0.66541517", "0.66477853", "0.65655464", "0.5590826", "0.556456", "0.5558022", "0.54877955", "0.5479991", "0.53925776", "0.53846973", "0.53568435", "0.531806", "0.5304602", "0.52993435", "0.5295831", "0.5285412", "0.52651507", "0.52359074", "0.5214346", "0.5199...
0.81778216
0
Sets the "Get_Status_All_Monitors" element
public void setGetStatusAllMonitors(net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors getStatusAllMonitors) { synchronized (monitor()) { check_orphaned(); net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors getGetStatusAllMonitors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors target =...
[ "0.7174716", "0.67003983", "0.6100221", "0.6058732", "0.570422", "0.54947543", "0.5300116", "0.51170295", "0.51094764", "0.51089126", "0.51051974", "0.51004237", "0.5036607", "0.49582255", "0.4955893", "0.4920768", "0.48917714", "0.48238775", "0.48205617", "0.48118287", "0.47...
0.802591
0
Appends and returns a new empty "Get_Status_All_Monitors" element
public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors addNewGetStatusAllMonitors() { synchronized (monitor()) { check_orphaned(); net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors target = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors getGetStatusAllMonitors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n net.ip_label.ws.ws_datametrie_php.GetStatusAllMonitorsDocument.GetStatusAllMonitors target =...
[ "0.6301528", "0.6089693", "0.5160867", "0.50829875", "0.50353396", "0.49871862", "0.49533135", "0.491432", "0.48217082", "0.4814093", "0.4797922", "0.47753015", "0.47616467", "0.47497275", "0.47019032", "0.46962386", "0.46942368", "0.46521142", "0.46514726", "0.46390653", "0....
0.7456745
0
Implementation of the WigedEdge Algorithm for ring primitives, described in DIGEST Part 2, Annex C2.4.3. Given a row from the ring primitive table, navigate the ring and edge primitive tables to construct the edge information associated with the specified ring.
public int traverseRing(int faceId, int startEdgeId, VPFPrimitiveData.PrimitiveInfo[] edgeInfoArray, EdgeTraversalListener listener) { // 1. Determine which face primitive to construct. // The face is determined for us by the selection of a row in the face primitive table. // 2. Ide...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEdge(int u, int v, double w) {\n\t\t\n\t}", "public Edge<E, V> getUnderlyingEdge();", "Edge getEdge();", "double getEdgeWeight();", "E getEdge(int id);", "private void findEdges(){\n int pixel,x,y;\n int color;\n double gx,gy,magnitude;\n double magnitudes[][] =...
[ "0.51621413", "0.5121186", "0.50913644", "0.50900203", "0.5009268", "0.49927512", "0.49796632", "0.49270245", "0.49202362", "0.49171767", "0.49167398", "0.48032606", "0.478707", "0.4779425", "0.47648638", "0.4735723", "0.4674462", "0.46732274", "0.4666861", "0.46635005", "0.4...
0.5427724
0
The next edge depends on which side of this edge (left or right) the face belongs to. If the face is on the left side of this edge, we travel to the left edge, and visa versa. However if this is an auxiliary edge (face is both left and right of the edge), then travel to the next edge which does not cause us to backtrac...
protected int nextEdgeId(int faceId, int prevEdgeId, int curEdgeId, VPFPrimitiveData.PrimitiveInfo[] edgeInfoArray) { Orientation o = this.getOrientation(faceId, curEdgeId, edgeInfoArray); if (o == null) { return -1; } switch (o) { case LEFT:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int nextcwedge(int edge, int face) {\n switch (edge) {\n case LB:\n return (face == L) ? LF : BN;\n case LT:\n return (face == L) ? LN : TF;\n case LN:\n return (face == L) ? LB : TN;\n case LF:\n return (face == L) ? LT : BF;\n ...
[ "0.6942914", "0.67072076", "0.6269912", "0.61737525", "0.6120763", "0.60295045", "0.6011182", "0.59854364", "0.59812564", "0.59121555", "0.5892761", "0.57722116", "0.5751568", "0.5744439", "0.57236344", "0.5685684", "0.5639437", "0.5636093", "0.5620802", "0.55934775", "0.5572...
0.5912875
9