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 interpolated list of heading positions
public List<Vector3f> getInterpolatedHeadings() { return interpolatedHeadings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Vector3f> getInterpolatedPositions()\n {\n return interpolatedPositions;\n }", "float getHeading();", "float getHeading();", "float getHeading();", "public float getInterpolatedHeading (float u) {\r\n\r\n float newHeading;\r\n \r\n // if linear interpolation\r\...
[ "0.6622014", "0.6176847", "0.6176847", "0.6176847", "0.58474904", "0.568218", "0.5440358", "0.5440358", "0.5414543", "0.5413771", "0.5290278", "0.5290278", "0.527906", "0.5263312", "0.5226241", "0.5211441", "0.51680386", "0.511624", "0.5023438", "0.49922693", "0.498743", "0...
0.7455338
0
/ ==================================================================== Private methods ====================================================================
private long getRefsCount(final T val, final String query) throws CalFacadeException { HibSession sess = getSess(); sess.createQuery(query); sess.setEntity("ent", val); /* May get multiple counts back for events and annotations. */ @SuppressWarnings("unchecked") Collection<Long> counts = sess.getList(); long total = 0; if (debug) { trace(" ----------- count = " + counts.size()); if (counts.size() > 0) { trace(" ---------- first el class is " + counts.iterator().next().getClass().getName()); } } for (Long l: counts) { total += l; } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "private Rekenhulp()\n\t{\n\t}", "...
[ "0.6515824", "0.62780803", "0.6240479", "0.6205201", "0.617721", "0.61257875", "0.610604", "0.6093475", "0.6027585", "0.60062194", "0.60062194", "0.59784704", "0.59703827", "0.59506524", "0.5928414", "0.5914973", "0.59040534", "0.5897978", "0.58877015", "0.58862054", "0.58793...
0.0
-1
test that it does not hurt player after MOLE_APPEARANCE_TIME
@Test public void testSabotageMole() { assertEquals(5, player.getHP()); sabotageMole.update(sabotageMole.getMOLE_APPEARANCE_TIME()); sabotageMole.update(0); assertEquals(5, player.getHP()); //test that it hurts player it player touches it sabotageMole = new SabotageMole(player); sabotageMole.minusHP(); sabotageMole.update(0); assertEquals(0, sabotageMole.getHP()); assertTrue(sabotageMole.isDead()); sabotageMole.update(0); sabotageMole.damage(); assertEquals(4,player.getHP()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testMoleKingInstantKO() {\n\t\tassertEquals(5, player.getHP());\n\t\tkingMole.update(kingMole.getMOLE_APPEARANCE_TIME());\n\t\tkingMole.update(0);\n\t\tassertEquals(0, player.getHP());\n\t}", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Player player0 = new Player();\n ...
[ "0.68726325", "0.66780156", "0.6552365", "0.65490705", "0.6532667", "0.6499654", "0.6480773", "0.6480738", "0.648016", "0.6466336", "0.6461445", "0.64124334", "0.6346953", "0.6330318", "0.6310214", "0.62768", "0.62669706", "0.6261697", "0.62464124", "0.6240954", "0.62308633",...
0.61172795
35
does not hurt player even after it stays for its duration
@Test public void testDummyMole() { assertEquals(5, player.getHP()); sabotageMole.update(sabotageMole.getMOLE_APPEARANCE_TIME()); sabotageMole.update(0); assertEquals(5, player.getHP()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 18...
[ "0.7213757", "0.7167614", "0.71039265", "0.695187", "0.68194866", "0.6813347", "0.6808716", "0.6763329", "0.6745973", "0.67292815", "0.671338", "0.6685553", "0.6670188", "0.6667238", "0.6655549", "0.663538", "0.66312164", "0.66252834", "0.6615126", "0.6609583", "0.66069174", ...
0.0
-1
requires 20 hits to die
@Test public void testMoleKingHP() { assertEquals(20, kingMole.getHP()); assertEquals(false, kingMole.isDead()); for (int i=0; i<19; i++) { kingMole.minusHP(); } assertEquals(false, kingMole.isDead()); kingMole.minusHP(); assertEquals(true, kingMole.isDead()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "public void suffer(int hits)\r\n {\r\n health = health - hits;\r\n if (health < 0)\r\n health = 0;\r\n if (hits == 0)\r\n say(\"Hahaha! I defened myself with...
[ "0.6282605", "0.618208", "0.61561835", "0.6101785", "0.6032912", "0.60242397", "0.6021106", "0.58935916", "0.58284265", "0.5810701", "0.5795234", "0.57887906", "0.57882637", "0.57882637", "0.57478696", "0.5699919", "0.56726736", "0.5672354", "0.56612223", "0.5645896", "0.5636...
0.0
-1
moleking causes instant KO if not killed in 10s
public void testMoleKingInstantKO() { assertEquals(5, player.getHP()); kingMole.update(kingMole.getMOLE_APPEARANCE_TIME()); kingMole.update(0); assertEquals(0, player.getHP()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void kill() {\n\t\tsetDeathTime(0.6);\n\t}", "private final void kill() {\n\t\tgrown=false;\t\t\n\t}", "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "public synchronized void Kill() {\n\t dieDieDie = true;\n\t}", "public synchronized void Kill() {\n\t dieDieDie = true;\n\t}", "@Ov...
[ "0.6858867", "0.6837164", "0.65908736", "0.6403764", "0.6403764", "0.6394629", "0.6363421", "0.62777156", "0.62750113", "0.62474763", "0.61657906", "0.61483437", "0.61321443", "0.6123788", "0.6122542", "0.6070909", "0.6051873", "0.6051873", "0.60413027", "0.6035123", "0.60092...
0.6173425
10
Created by Administrator on 2017/8/24.
public interface BaseDao<T> { public void insert(T t); public void delete(String id); public void update(T t); public T queryOne(String id); public List<T> queryAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6288438", "0.60429096", "0.57722044", "0.57614684", "0.57398534", "0.5739663", "0.5693899", "0.56848896", "0.56824076", "0.56813747", "0.56797045", "0.5669946", "0.5655368", "0.5634187", "0.5634187", "0.56324685", "0.56295204", "0.56268656", "0.56218773", "0.5620156", "0.5...
0.0
-1
Mat output = new Mat(mat.rows(), mat.cols(), CvType.CV_64F);
public static Mat computeXGradient(Mat mat) { Mat output = new Mat(mat.rows(), mat.cols(), CvType.CV_32F); for (byte y = 0; y < mat.rows(); ++y) { Mat mr = mat.row(y); output.put(y,0, mr.get(0,1)[0] - mr.get(0,0)[0]); for (byte x = 1; x < mat.cols() - 1; ++x) { output.put(y,x, (mr.get(0,x+1)[0] - mr.get(0,x-1)[0])/2.0); } } return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Mat invert(JPEGCategory[] input) {\n\t\tdouble[] data = new double[64];\n\t\tint k = 0;\n\t\t\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tdouble[] subArr = convertToDouble(input[i]);\n\t\t\tfor (int j = 0; j < subArr.length; j++) {\n\t\t\t\tdata[k] = subArr[j];\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\...
[ "0.63478136", "0.6303417", "0.6244646", "0.6243245", "0.61977303", "0.61848485", "0.6179657", "0.6078891", "0.59883815", "0.58674115", "0.582217", "0.58139884", "0.5809773", "0.57582647", "0.5755259", "0.57439816", "0.57388073", "0.5722396", "0.5650599", "0.56379324", "0.5580...
0.0
-1
Sets the prefix for all metrics If prefix is null, client will be created without prefix
public DatadogBuilder prefix(@Nullable String prefix) { this.prefix = prefix; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPrefix(String prefix);", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPropertyPrefix(String prefix);", "public void setPrefix(java.lang.String prefix) {\r\n this.prefix = pr...
[ "0.6925548", "0.6728912", "0.6728912", "0.6659057", "0.6588278", "0.6567902", "0.63939875", "0.63900447", "0.6364135", "0.6203881", "0.61923206", "0.6089794", "0.6066698", "0.6064535", "0.5999906", "0.59985703", "0.5971643", "0.594744", "0.59348166", "0.5928095", "0.58874047"...
0.6713675
3
Sets the address for datadogs agent
public DatadogBuilder address(InetSocketAddress address) { this.address = address; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String a...
[ "0.69553614", "0.6918932", "0.68796116", "0.68796116", "0.68796116", "0.68796116", "0.68500006", "0.68500006", "0.68500006", "0.6831334", "0.67406094", "0.67329687", "0.6697118", "0.6697118", "0.6695205", "0.6681765", "0.665859", "0.66579807", "0.6649228", "0.6649228", "0.664...
0.6642397
21
Invariant de classe. cf. B. Liskov.
public boolean repOk();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "public Clade() {}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public InsulinType(){\n super();\n }", "@Override\n protected void checkSubclass() {\n }", "public abstract Object mo1771a();", "@Override\n\tprotected void checkSubclass() {\...
[ "0.59826905", "0.59826905", "0.59643394", "0.5856656", "0.5844617", "0.57811624", "0.5769286", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", "0.56958896", ...
0.0
-1
private JMenuBar menubar =new JMenuBar(); private JMenu menu1=new JMenu("Partie");
public JeuDeCarteDemarrageView(){ Image img =Toolkit.getDefaultToolkit().getImage("images/density.jpg"); BackgroundPanel fenetreDebut =new BackgroundPanel(img,2); fenetreDebut.setLayout(new FlowLayout()); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setSize(400,500); this.setBatailleNorvLabel(fenetreDebut); JLabel vide = new JLabel(); vide.setPreferredSize(new Dimension(200, 50)); fenetreDebut.add(vide); this.setJouerBouton(fenetreDebut); this.setBienvenuLabel(fenetreDebut); this.setNomBouton(fenetreDebut); this.setReglesBouton(fenetreDebut); this.add(fenetreDebut); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "public void generateMenu(){\n menuBar = new J...
[ "0.7814957", "0.7748017", "0.771436", "0.76421237", "0.7628298", "0.7620536", "0.76200724", "0.7517365", "0.7400726", "0.7369742", "0.7336498", "0.7330543", "0.7318733", "0.73145", "0.7289132", "0.72659844", "0.7265436", "0.7265436", "0.7258331", "0.7257405", "0.7241603", "...
0.0
-1
TODO Autogenerated method stub Static dropdowns
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "c://work//chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("https://www.facebook.com/"); // If you want to accees any methods in class ,create object for that class and access methods //using object.method //static drop down and when the tag is select only this will work Select s=new Select(driver.findElement(By.id("month"))); s.selectByValue("3"); Select d=new Select(driver.findElement(By.id("day"))); d.selectByIndex(28); Select y=new Select(driver.findElement(By.id("year"))); y.selectByVisibleText("1991"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown9() {\n return build_f_ListDropDown9();\n }", "private org.gwtbootstrap3.client.ui.ListDropDown get_f_ListDropDown20() {\n return build_f_ListDropDown20();\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMe...
[ "0.6919714", "0.6913265", "0.68623954", "0.6861975", "0.6845552", "0.6813811", "0.6772751", "0.6769789", "0.67492205", "0.6731938", "0.6727302", "0.6704049", "0.6683776", "0.6644526", "0.6574538", "0.6410206", "0.6380372", "0.6357362", "0.62599605", "0.62247884", "0.6219729",...
0.0
-1
Created by Admon on 27.03.2015.
public interface CashRegisterDAO { public void addCashRegister(CashRegister cashRegister ) throws SQLException; public void updateCashRegister(CashRegister cashRegister ) throws SQLException; public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException; public Collection getAllCashRegister() throws SQLException; public void deleteCashRegister(CashRegister cashRegister) throws SQLException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.5871082", "0.57823277", "0.5700516", "0.56682384", "0.56118023", "0.56118023", "0.5608854", "0.5564449", "0.55605507", "0.5559182", "0.55556685", "0.55513453", "0.55485344", "0.5539549", "0.5538778", "0.5534582", "0.55228525", "0.5505721", "0.54956865", "0.5495601", "0.549...
0.0
-1
/ / / /
public ArrayList<RewardBean> getTotalCost() { /* 28 */ return this.totalCost; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) ...
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.4915...
0.0
-1
This is the default constructor (do not remove).
public FWMSStockExchangeVOImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Instantiation(){}", "defaultConstructor(){}", "public PSRelation()\n {\n }", "public Orbiter() {\n }", "public Gen...
[ "0.8008779", "0.7769194", "0.73964155", "0.7316486", "0.7260056", "0.718806", "0.71752644", "0.7150133", "0.7121881", "0.7095582", "0.7064848", "0.7043535", "0.7021626", "0.6989982", "0.69864064", "0.6976774", "0.696405", "0.69608796", "0.69593084", "0.69549793", "0.69526047"...
0.0
-1
Returns the variable value for pStockExchange.
public String getpStockExchange() { return (String) ensureVariableManager().getVariableValue("pStockExchange"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setpStockExchange(String value) {\r\n ensureVariableManager().setVariableValue(\"pStockExchange\", value);\r\n }", "private String getStock() {\n\t\treturn stock;\n\t}", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "public Integer getStock_num() {\n ...
[ "0.6688376", "0.6551557", "0.65385", "0.65170544", "0.64639896", "0.6432917", "0.6432316", "0.6432316", "0.6316727", "0.62557375", "0.62412065", "0.6140976", "0.6120611", "0.60988545", "0.6056427", "0.6049762", "0.60299265", "0.60102296", "0.59888244", "0.5974959", "0.5859714...
0.8269126
0
Sets value for variable pStockExchange.
public void setpStockExchange(String value) { ensureVariableManager().setVariableValue("pStockExchange", value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(Integer stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n\t\tthis.stock = stock;\n\t}", "public void setPr...
[ "0.61418575", "0.61418575", "0.6138724", "0.60573083", "0.60565674", "0.5961135", "0.5958125", "0.5940689", "0.59393334", "0.5937871", "0.5860106", "0.58520913", "0.58520913", "0.58174056", "0.58117855", "0.57916504", "0.5786799", "0.57629037", "0.5737302", "0.5728979", "0.57...
0.8411881
0
Creates instance of ArduinoComm
public ArduinoComm() { setup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ArduinoConnection() {\n\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\n if (PORT_NAME.equals(currPortI...
[ "0.6516559", "0.65004045", "0.6353318", "0.6265991", "0.62109905", "0.6122728", "0.6022117", "0.5842409", "0.5835631", "0.57407033", "0.5728193", "0.57092613", "0.57075864", "0.56651336", "0.5653679", "0.5640709", "0.56192076", "0.56041443", "0.5581128", "0.5553084", "0.55500...
0.8318581
0
Writes newVoltage to Serial
public void updateVoltage(double newVoltage) { outString = "V" + newVoltage + "\n"; myPort.write(outString); myPort.write('\n'); System.out.println(outString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVoltage(double voltage) {\n\t\tthis.voltage = voltage;\n\t}", "EDataType getVoltage();", "int getInputVoltageRaw();", "int getOutputVoltageRaw();", "int getOutputVoltage();", "public void updateCurrent(double newCurrent) {\r\n\t\toutString = \"C\" + newCurrent + \"\\n\";\r\n\t\tmyPort.writ...
[ "0.6246316", "0.60497737", "0.6004895", "0.599284", "0.58335006", "0.57625055", "0.57486737", "0.57466197", "0.5738322", "0.5718962", "0.5661359", "0.53731287", "0.5253589", "0.51771706", "0.51597834", "0.51390445", "0.51290584", "0.5120102", "0.5019782", "0.49968573", "0.499...
0.79744935
0
Writes newCurrent to Serial
public void updateCurrent(double newCurrent) { outString = "C" + newCurrent + "\n"; myPort.write(outString); System.out.println(outString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeCurrentBuffer();", "void writeCurrentTrackData(int position, int value) {\n currentTrackData[position].write(position, value);\n }", "public void updateVoltage(double newVoltage) {\r\n\t\toutString = \"V\" + newVoltage + \"\\n\";\r\n\t\tmyPort.write(outString);\r\n\t\tmyPort.write('...
[ "0.72603667", "0.6193504", "0.58333504", "0.5780777", "0.575893", "0.55695885", "0.55431956", "0.55231035", "0.5497086", "0.53692794", "0.5307059", "0.53050697", "0.5292104", "0.51629114", "0.51474595", "0.5137918", "0.5126094", "0.5102698", "0.5089194", "0.5085059", "0.50671...
0.76683044
0
Writes whether On/Off to Serial
public void updateOn(boolean on) { outString = "O" + on + "\n"; myPort.write(outString); System.out.println(outString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeBool(boolean value);", "void writeBoolean(boolean v) throws IOException;", "public void turn_on () {\n this.on = true;\n }", "public void writeLedCharacteristic(boolean value) {\n byte[] byteVal = new byte[1];\n if (value) {\n byteVal[0] = (byte) (1);\n } e...
[ "0.69085026", "0.6749436", "0.67425424", "0.6625319", "0.6556644", "0.6555838", "0.65516984", "0.6502812", "0.64820457", "0.64602464", "0.62891775", "0.62856364", "0.6273827", "0.61981577", "0.618061", "0.61620325", "0.6132561", "0.6132388", "0.6129601", "0.60436976", "0.6043...
0.73021495
0
assertTrue(visitorsMedicalInsurance.isPageLoad(remoteWebDriver), "verify Visitor Insurance Evaluation page landed");
@Test(priority = 1) public void testIsPageLoad() throws MalformedURLException { assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validatePageLoad() {\n\t\tJavascriptExecutor js;\n\t\tjs = (JavascriptExecutor) uiElementAction.driver;\n\t\tboolean assertion =\n\t\t\t\tjs.executeScript(\"return document.readyState\").equals(\"complete\") == true;\n\t\tLog.info(\"The page loaded successfully: \" + assertion);\n\t\tAssert.assertTrue(...
[ "0.6887083", "0.6690671", "0.6550943", "0.6533226", "0.6481363", "0.6405811", "0.638893", "0.6383702", "0.63239354", "0.6243563", "0.62118834", "0.619295", "0.6187758", "0.61754894", "0.61727726", "0.61690867", "0.6168757", "0.6145346", "0.61423254", "0.6132055", "0.6114728",...
0.70535874
0
assertTrue(visitorsMedicalInsurance.verifyQuestionOne(remoteWebDriver), "verify the First question");
@Test(priority = 2) public void testVerifyQuestionOne() { assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyThankYouSurveyInAnonymousSMR(){\t\t\t\t\t\t \n\t Report.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"...
[ "0.6686719", "0.66820997", "0.64373064", "0.6433985", "0.6418894", "0.6407724", "0.6394237", "0.63625604", "0.62899315", "0.61971587", "0.61737883", "0.6162221", "0.6123416", "0.6120405", "0.61004055", "0.6097045", "0.6073438", "0.60572386", "0.60453314", "0.60410786", "0.604...
0.7081979
0
assertTrue(visitorsMedicalInsurance.verifyQuestionTwo(remoteWebDriver), "Verify the Second question");
@Test(priority = 3) public void testVerifyQuestionTwo() { assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyThankYouSurveyInAnonymousSMR(){\t\t\t\t\t\t \n\t Report.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page f...
[ "0.70453817", "0.666437", "0.6624874", "0.6529408", "0.6400858", "0.63704836", "0.6308634", "0.6281684", "0.6276747", "0.6267019", "0.62573767", "0.61864734", "0.6180994", "0.6139845", "0.6135571", "0.6133611", "0.6131155", "0.6122037", "0.61126363", "0.61122817", "0.61095905...
0.7054867
0
assertTrue(visitorsMedicalInsurance.verifyQuestionThree(remoteWebDriver),"Verify the third question");
@Test(priority = 4) public void testVerifyQuestionThree() { assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }", "@Test\r\n\tpublic void questionTest() throws Throwable {\n\t\tString category=eUtil.getExcelData(\"smoke\", 1, 2);\r\n...
[ "0.70523775", "0.68913376", "0.66618764", "0.66428286", "0.6508035", "0.6477141", "0.643661", "0.64056814", "0.63344973", "0.6320382", "0.61984813", "0.61861694", "0.6165255", "0.6162063", "0.61530614", "0.6152583", "0.61404186", "0.61270434", "0.6125697", "0.6119601", "0.611...
0.69191766
1
assertTrue(visitorsMedicalInsurance.submitFeedback(remoteWebDriver), "Verify the submission part.");
@Test(priority = 5) public void testSubmitFeedback() throws InterruptedException { assertTrue(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testReceiveFeedback() {\n\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void smrConfirmationPageWithinMRCollective(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether Submit meter read is successful for customers submitting within MR window for logged in ...
[ "0.67643684", "0.6751516", "0.66688526", "0.65945375", "0.65628886", "0.6509554", "0.65000916", "0.64989465", "0.6494132", "0.64213675", "0.6413465", "0.6339495", "0.6330669", "0.6286979", "0.62842417", "0.6282882", "0.62702197", "0.6235044", "0.62170565", "0.62008655", "0.61...
0.69827825
0
Displays an error message
public ErrorAlert(String message) { JOptionPane.showMessageDialog(MainWindow.getInstance(), message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showError(String message);", "void showError(String message);", "public void showError(String error);", "public void showError(String errorMessage);", "void showError(String errorMessage);", "void displayErrorMessage(String message);", "@Override\n\tpublic void showError(String message) {\n\t\t\n\...
[ "0.8346024", "0.8346024", "0.82923675", "0.8228079", "0.81680465", "0.7916077", "0.78790545", "0.75981045", "0.7501927", "0.7494702", "0.7429005", "0.74172723", "0.7386079", "0.73813087", "0.73664474", "0.7356751", "0.7314479", "0.72760063", "0.7256712", "0.7254666", "0.72447...
0.6524822
93
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_telarelatorio, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Initializes this UpShiftButton with a reference to the underlying tile it represents as well as the over arching game object. The button is set up with its action listener (defined as an inner class).
public UpShiftButton(){ super(); BufferedImage image = null; try { URL file = getClass().getResource("/resources/arrow_up.png"); image = ImageIO.read(file); } catch (IOException ioex) { System.err.println("load error: " + ioex.getMessage()); } ImageIcon icon = new ImageIcon(image); this.setIcon(icon); _shiftIndex = 0; _theGame = null; this.addActionListener(new UpShiftListener()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pushButtonUp(Floor floor)\r\n\t{\r\n\t\tdirectionButtonPanels[floor.getNumber()][1]=LiftButton.ACTIVE;\r\n\t}", "public JButtonOperator btMoveUp() {\n if (_btMoveUp==null) {\n _btMoveUp = new JButtonOperator(this, \"Move Up\"); // NOI18N\n }\n return _btMoveUp;\n }...
[ "0.5824061", "0.56602395", "0.56483346", "0.556192", "0.55541515", "0.5550078", "0.544578", "0.54331887", "0.54331887", "0.541224", "0.5406272", "0.5390847", "0.53277737", "0.52724814", "0.52336997", "0.52318156", "0.5210358", "0.52090997", "0.51554835", "0.51390356", "0.5095...
0.7600926
0
Used to instantiate the piles in the Freecell game.
FreecellModelAbstraction(Map<Integer, List<Cards>> cascadePile, Map<Integer, List<Cards>> foundationPile, Map<Integer, List<Cards>> openPile) { currentState = new GameState(); this.currentState.setOpenPile(openPile); this.currentState.setCascadePile(cascadePile); this.currentState.setFoundationPile(foundationPile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTiles(){\n\t\ttiles = new Tile[size * size];\n\t\tfor(int i = 0; i < tiles.length; i++){\n\t\t\ttiles[i] = new Tile(KEYS[i]);\n\t\t}\n\t}", "public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tPrope...
[ "0.7030927", "0.6934994", "0.67604256", "0.6743477", "0.67062277", "0.6700849", "0.66755235", "0.66530937", "0.6649294", "0.664722", "0.66076183", "0.65899533", "0.657995", "0.65567106", "0.65536267", "0.6536523", "0.65152216", "0.64886725", "0.64777845", "0.6435424", "0.6416...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { System.out.println(this.nome + "iniciada"); int soma = somador.somaArray(this.nums); System.out.println("Resultado da soma para thread "+this.nome + " é: "+ soma); System.out.println(this.nome + "terminada"); }
{ "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
this method is to get sapxml based on given reference id and header.
@PostMapping(EndPointReferrer.SAP_XML) @ResponseBody public ResponseEntity<SapResponse> getSapXmlData( @Validated({Header.FetchGrp.class}) @RequestBody @NotNull @Valid SapRequest sapRequest,HttpServletRequest httpRequest) throws Exception { return new ResponseEntity<>( dmzconnector.getSapXmlFullData(sapRequest.getGonogoRefId()), HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.apache.xmlbeans.XmlString xgetHeader();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage param, boolean optimizeContent)\n throws org.apache.axis...
[ "0.5782426", "0.5653772", "0.56215596", "0.5583404", "0.5567219", "0.5550217", "0.55325633", "0.5496129", "0.5488771", "0.54361326", "0.53761554", "0.5363858", "0.5363249", "0.532653", "0.5251518", "0.52441365", "0.5242339", "0.52366287", "0.52171004", "0.5214564", "0.5201990...
0.5167187
22
variable statement method YearToCentury put value of 0 to year
public YearToCentury() // defining method YearToCentury { year =0; // value of year =0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int calc_century() // defining method calc_century\r\n\t{\r\n\t\tif(year %100 == 0) // implement in the condition of year%100 =0\r\n\t\t\tyear = year / 100; // divide year by 100 and put its value to year\r\n\t\telse // implement except for the condition of year%100 =0\r\n\t\t{\r\n\t\t\tyear = (year/100) +1...
[ "0.80734044", "0.80205274", "0.7337906", "0.72494185", "0.68718773", "0.68023425", "0.6800527", "0.6751451", "0.664941", "0.66228694", "0.6552501", "0.65356344", "0.65096426", "0.6495223", "0.6479656", "0.6478098", "0.64738166", "0.64690554", "0.64534837", "0.64105624", "0.63...
0.87639374
0
method YearToCentury put value of year to this.year
public YearToCentury(int year) // defining method YearToCentury with int value year { this.year = year; // value of year = this.year }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public YearToCentury() // defining method YearToCentury\r\n\t{\r\n\t\tyear =0; // value of year =0\r\n\t}", "public int calc_century() // defining method calc_century\r\n\t{\r\n\t\tif(year %100 == 0) // implement in the condition of year%100 =0\r\n\t\t\tyear = year / 100; // divide year by 100 and put its value ...
[ "0.84439105", "0.7729094", "0.75411564", "0.70124996", "0.6690683", "0.6666251", "0.6554809", "0.64975375", "0.64618456", "0.64403415", "0.64239824", "0.6310812", "0.6296381", "0.628597", "0.62391543", "0.6238192", "0.61968344", "0.615878", "0.61466414", "0.61402166", "0.6085...
0.85643035
0
method calc_century calculate year to century
public int calc_century() // defining method calc_century { if(year %100 == 0) // implement in the condition of year%100 =0 year = year / 100; // divide year by 100 and put its value to year else // implement except for the condition of year%100 =0 { year = (year/100) +1; // divide year by 100 and add 1 then put its value to year } return year; // return value of year }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int centuryFromYear(int year) {\n\n return ( (year%100) == 0) ? year/100 : year/100 + 1;\n\n }", "public YearToCentury() // defining method YearToCentury\r\n\t{\r\n\t\tyear =0; // value of year =0\r\n\t}", "public YearToCentury(int year) // defining method YearToCentury with int value year\r\...
[ "0.80449677", "0.76017857", "0.7313713", "0.68280464", "0.65951663", "0.6537969", "0.65205556", "0.6329564", "0.6328055", "0.6261112", "0.62286645", "0.6179494", "0.61599624", "0.6130662", "0.60965514", "0.6051461", "0.60486454", "0.6008493", "0.6007565", "0.6007496", "0.5956...
0.8954425
0
This is main method which starts our program Using input by keyboard and calculate , then print out the results
public static void main(String[] args) // defining main method { // TODO Auto-generated method stub int yr = 0; // put value of 0 to yr Scanner keyboard = new Scanner(System.in); // data can be entered using keyboard System.out.println("Input year: ");// print out text and sets up things so the program can accept keyboard input yr = keyboard.nextInt(); // read number from keyboard YearToCentury year = new YearToCentury(yr); // // instantiate year System.out.println(yr + " is " + year.calc_century() + "th century."); // print out the result of calcultation }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n double cost;\n double diameter;\n double unitCost;\n\n//----Get data\n System.out.print(\"What size pizza : \");\n diameter = keyboard.nextDouble();\n System.out.print(\"What does it cost : \");\n cost = keyboard.nextDoub...
[ "0.77265006", "0.754498", "0.7544664", "0.75100565", "0.7495757", "0.74260193", "0.74234617", "0.733565", "0.73307794", "0.73204005", "0.7249969", "0.7243466", "0.72319347", "0.7213533", "0.7212129", "0.71882576", "0.7183689", "0.71549356", "0.71503025", "0.7110053", "0.71070...
0.0
-1
specialized operators += + = /=
public static void main(String args[]) { int num1 = 6; //num1 = num1 + 5; num1 += 5; //same as num1 + 5 System.out.println(num1); System.out.println("_____addition_____"); int num2 = 100; //num2 = num2 - 45; num2 -= 45; System.out.println(num2); System.out.println("_____subtraction_____"); int num3 = 5; //num3 = num3 *3; num3 *= 3; System.out.println(num3); System.out.println("_____multiplication_____"); int num4 = 35; num4 /= 5; System.out.println(num4); System.out.println("_____division_____"); double num5 = 10; num5 /= 3; System.out.println(num5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args)\n {\n int i = 1 + 1;\n \n //Concat String\n String s = \"My\" + \" \" + \"String\";\n \n int r = 4;\n int ff = 4;\n System.out.println(\"String\" + r + ff);\n System.out.println(\"String\" + ( r + ff ));\n //If the left or the rigth operator is ...
[ "0.6010175", "0.5986352", "0.597683", "0.5915605", "0.5905975", "0.58995366", "0.58402896", "0.5717268", "0.56626815", "0.565788", "0.5623916", "0.5607533", "0.5564023", "0.555871", "0.5521785", "0.5493904", "0.54799247", "0.54549146", "0.54236823", "0.54213107", "0.54085886"...
0.0
-1
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: mythtvapi.content
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ContentFactory getContentFactory();", "ObjectTypeDefinition createObjectTypeDefinition();", "JDefinedClass objectFactory();", "public interface ApiFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n...
[ "0.64414155", "0.62883836", "0.61937433", "0.6173853", "0.6169395", "0.6146006", "0.6146006", "0.6146006", "0.6134236", "0.6100509", "0.6059232", "0.6031363", "0.6004013", "0.5986759", "0.59670264", "0.5965008", "0.5949612", "0.59474546", "0.5945206", "0.5929567" ]
0.0
-1
System.out.println("Reviewul are " + nonStopWordsFromReview + " cuvinte");
private double checkWordsFromList(List<String> list, String review, int nonStopWordsFromReview) { int contor = 0; for (String l : list) { if (l.endsWith("*")) { l = l.substring(0,l.length()-1); boolean contains = review.matches(".*\\b" + l + ".*"); if (contains) { contor ++; } } else { boolean contains = review.matches(".*\\b" + l + "\\b.*"); if (contains) { contor ++; } } } double result = 0; //System.out.println("In review se gasesc " + contor + " cuvinte din lista"); result = (double)(100*contor)/nonStopWordsFromReview; DecimalFormat newFormat = new DecimalFormat("#.###"); double threeDecimal = Double.valueOf(newFormat.format(result)); return threeDecimal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getStopWords() throws IOException{\n\t\tString filepath1 = \"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/stoplist.txt\";\n\t\tPath path1 = Paths.get(filepath1);\n\t\tScanner scanner1 = new Scanner(path1);\n\t\tStringBuffer stopWords = new StringBuffer();\n\t\t\n\t\twhile (scanner1.hasNextLine()){\n\t\t...
[ "0.6703353", "0.6543653", "0.65043104", "0.63704205", "0.6307971", "0.6283775", "0.617307", "0.61435586", "0.6131859", "0.6131809", "0.61302966", "0.60925514", "0.60779774", "0.60697633", "0.60086465", "0.59178483", "0.5906622", "0.5887296", "0.57536006", "0.5748286", "0.5716...
0.5821227
18
save data at firebase
@Override public void onClick(View v) { updateInformation(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "void save_Online(String firebase_id){\n\n DatabaseReference records_ref =\n FirebaseDatabase.getInstance().getReference(getResources().getString(R.string.records_ref));\n DatabaseRefere...
[ "0.7288711", "0.71127564", "0.70334834", "0.6961548", "0.6927081", "0.6900246", "0.6895354", "0.68489796", "0.6845592", "0.68201137", "0.6725582", "0.67034346", "0.6688411", "0.6621181", "0.65891993", "0.6582431", "0.6575285", "0.6565549", "0.65636337", "0.6561605", "0.655477...
0.0
-1
Array // [ 0 ] // [ 1 ] < selected array index = 1, loc = 0 // [ 2 ] // [ 3 ] Spinner //Index 0: [ 1 ] < currently selected //Index 1: [ 0 ] //Index 2: [ 2 ] //Index 3: [ 3 ] so if index 0 is clicked, that's our currently selected if index 1 is clicked that's actually the value 1 adjusted position, when accounting for reordering around selected index
@Nullable @Override public String getItem(int position) { int adjustedPosition = convertSpinnerToValuesIndex(position); if(adjustedPosition == -1) { return mPlaceholderString; } else { return values[adjustedPosition].toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "@Override\n public void onClick(View v)\n {\n mySpinner.performClick();\n int getPosition = (Integer) ...
[ "0.685627", "0.68263507", "0.6780341", "0.66239864", "0.6548287", "0.6529563", "0.6491141", "0.63483495", "0.63483495", "0.6326708", "0.6321823", "0.6235088", "0.622135", "0.6216081", "0.6211887", "0.6211887", "0.6211887", "0.6202901", "0.6194008", "0.61713403", "0.61676365",...
0.0
-1
Converts a spinner index to the proper index in values;
private int convertSpinnerToValuesIndex(int position) { int adjustedPosition; if(mSelectedArrayIndex== -1 && mHasEmptyPlaceholder) { adjustedPosition=position-1; } else if(mSelectedArrayIndex==-1) { adjustedPosition=position; } else { if (position == 0) { adjustedPosition = mSelectedArrayIndex; } else if (position <= mSelectedArrayIndex) { adjustedPosition = position - 1; } else //if(position> mSelectedArrayIndex) { adjustedPosition = position; } } return adjustedPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getSpinnerIndexByValue(Spinner spinner, String value) {\n int index = -1;\n for (int i =0; i<spinner.getCount();i++){\n if(spinner.getItemAtPosition(i).toString().equalsIgnoreCase(value)) {\n index = i;\n break;\n }\n }\n r...
[ "0.61486197", "0.60925007", "0.60242295", "0.59372777", "0.5821734", "0.57951754", "0.57176244", "0.57154113", "0.5595631", "0.5578574", "0.5558572", "0.55378443", "0.55278736", "0.5517722", "0.55073315", "0.54995984", "0.546222", "0.54572153", "0.5442297", "0.5420201", "0.53...
0.7433263
0
Tra ve man hinh VTTB
@POST @Path("/getValueToInitHandOverHistoryVTTBPages/") public HandOverHistoryDTOResponse getValueToInitHandOverHistoryVTTBPages(HandOverHistoryDTORequest request) { HandOverHistoryDTOResponse response = new HandOverHistoryDTOResponse(); try { response.setListStTransactionVTTBDTO(handOverHistoryBusiness.getValueToInitHandOverHistoryVTTB(request)); ResultInfo resultInfo = new ResultInfo(); resultInfo.setStatus(ResultInfo.RESULT_OK); response.setResultInfo(resultInfo); } catch (Exception e) { LOGGER.error(e.getMessage(), e); ResultInfo resultInfo = new ResultInfo(); resultInfo.setStatus(ResultInfo.RESULT_NOK); resultInfo.setMessage(e.getMessage()); response.setResultInfo(resultInfo); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}", "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soTha...
[ "0.7033387", "0.652019", "0.648302", "0.64148515", "0.6386069", "0.62903273", "0.6280773", "0.62766594", "0.6224709", "0.62082386", "0.618202", "0.6152665", "0.6149882", "0.60340923", "0.60031664", "0.599443", "0.5961476", "0.59129685", "0.58913195", "0.5885565", "0.5864475",...
0.0
-1
Tra ve man hinh VTTB chi tiet
@POST @Path("/getValueToInitHandOverHistoryVTTBDetail/") public HandOverHistoryDTOResponse getValueToInitHandOverHistoryVTTBDetail(HandOverHistoryDTORequest request) { HandOverHistoryDTOResponse response = new HandOverHistoryDTOResponse(); try { response.setListStTransactionVTTBDetailDTO(handOverHistoryBusiness.getValueToInitHandOverHistoryVTTBDetail(request)); ResultInfo resultInfo = new ResultInfo(); resultInfo.setStatus(ResultInfo.RESULT_OK); response.setResultInfo(resultInfo); } catch (Exception e) { LOGGER.error(e.getMessage(), e); ResultInfo resultInfo = new ResultInfo(); resultInfo.setStatus(ResultInfo.RESULT_NOK); resultInfo.setMessage(e.getMessage()); response.setResultInfo(resultInfo); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void getThongTin() {\n\t\tSystem.out.print(\"Ghế \");\n\t\tvatlieu.getMoTa();\n\t}", "@Override\n\tdouble dienTich() {\n\t\tdouble p = chuVi() / 2;\n\t\treturn Math.sqrt(p*(p-canhA)*(p-canhB)*(p-canhC));\n\t}", "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soTha...
[ "0.69218445", "0.6835487", "0.66113454", "0.65718514", "0.64786404", "0.6472381", "0.6451301", "0.640611", "0.63651246", "0.63359517", "0.63235235", "0.629616", "0.629457", "0.6290731", "0.62704927", "0.626928", "0.6207397", "0.6077632", "0.6074635", "0.6065876", "0.6025817",...
0.0
-1
Creates new form AISDecoder
public AISDecoder() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Encoder() {}", "private void configureDecoder() throws IOException\n {\n byte[] prefix = new byte[] { 0x00, 0x00, 0x00, 0x01 };\n\n ByteBuffer csd0 = ByteBuffer.allocate(4 + SPS.length + 4 + PPS.length);\n csd0.put(new byte[] { 0x00, 0x00, 0x00, 0x01 });\n csd0.put(SPS);\n ...
[ "0.52805597", "0.51742697", "0.51623183", "0.5158829", "0.5128019", "0.5101053", "0.50640047", "0.506035", "0.50275564", "0.50157017", "0.5012053", "0.5008981", "0.50073797", "0.49940202", "0.49801567", "0.4969224", "0.49564433", "0.494323", "0.4939739", "0.49253762", "0.4922...
0.74052507
0
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() { jPanel1 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); jTextArea2 = new javax.swing.JTextArea(); jButton2 = new javax.swing.JButton(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jMenuItem1 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("MOSAiC Guidance System - AIS Packet Decoder"); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Decoder")); jTextField1.setText("AIS Packet"); jTextField1.setToolTipText("Enter an AIVDM or GPGBS or GPRMC type AIS Packet"); jTextField1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTextField1FocusGained(evt); } }); jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } }); jButton1.setText("Read "); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jTextArea2.setEditable(false); jTextArea2.setColumns(20); jTextArea2.setRows(5); jScrollPane2.setViewportView(jTextArea2); jButton2.setText("Decode"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jScrollPane2) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 464, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(20, 20, 20)))) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(29, 29, 29) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(33, 33, 33) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE) .addContainerGap()) ); jMenu1.setText("File"); jMenuItem2.setText("Clear"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenu1.add(jMenuItem2); jMenuItem3.setText("Help"); jMenu1.add(jMenuItem3); jMenuItem1.setText("Exit"); jMenu1.add(jMenuItem1); jMenuBar1.add(jMenu1); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(38, 38, 38) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(30, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(25, Short.MAX_VALUE)) ); pack(); }
{ "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.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.694...
0.0
-1
Creates a new instance of modRoomControl.
public modGenRoomControl() { //construct MbModule super(); roomObjects = new HashMap(32); gui = new GUI(); //we depend on the RemoteControl-module addDependency("RemoteControl"); //we depend on the ARNE-module addDependency("ARNE"); //register our packet data handler setPacketDataHandler(new PacketDataHandler()); //we have a html-interface, so lets register it setHTMLInterface(new HTMLInterface()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room() {\r\n\t\troomObjects = new ArrayList<GameObject>();\r\n\t\troom_listener = new RoomListener();\r\n\t\tlisteners = new ListenerContainer(room_listener);\r\n\t}", "public Room() {\n\n\t}", "public MyRoom() {\r\n }", "public Room(){\n\t\tt.start();\n\t\taddKeyListener(this);\n\t\tsetFocusable(t...
[ "0.63174826", "0.6295106", "0.628502", "0.6232818", "0.62122196", "0.6211805", "0.6140071", "0.61058813", "0.60651976", "0.6000905", "0.59667265", "0.59331757", "0.5916333", "0.5858174", "0.5759242", "0.5746609", "0.572756", "0.57271945", "0.5704601", "0.56688064", "0.5662352...
0.73407406
0
Gets the name of the component.
public String name() { return "GenRoomControl"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BaseComponent getComponentName();", "protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }", "public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExp...
[ "0.8258861", "0.82251537", "0.8117737", "0.8100388", "0.7860465", "0.7838571", "0.7838571", "0.77988064", "0.7658822", "0.7296105", "0.72480285", "0.7218697", "0.72118396", "0.71960497", "0.71905893", "0.71567106", "0.71411586", "0.7128821", "0.7090398", "0.7066043", "0.70660...
0.0
-1
Gets the description of the component.
public String description() { return "Controls any on/off-thing via the ARNE bus"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription () {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\...
[ "0.8418605", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.8391865", "0.83887887", "0.83788866", "0.83754945", "0.83754945", "0.83754945", "0.8365357", "0.83523846", "0.83523846", "0.83523846", "0.83523846", "0.8352...
0.0
-1
This method sets default values on all _required_ data fields in the data repository.
protected void initDataFields() { //this module doesn't require any data fields }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillMandatoryFields() {\n\n }", "public void initDefaultValues() {\n }", "public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); //...
[ "0.69521433", "0.6933475", "0.68388426", "0.6762448", "0.65691316", "0.6430264", "0.64024067", "0.63881594", "0.63689214", "0.6307017", "0.6291198", "0.619143", "0.6176477", "0.6176477", "0.61155504", "0.60606533", "0.6050138", "0.6010395", "0.5960783", "0.59543025", "0.59297...
0.6888613
2
Starts up this module.
public void startup() throws MbStartupException { //start up MbModule super.startup(); //get all room objects from the data repository DataRepository.DataList list = dataRepository.getList("roomobjects"); if (list!=null) { Iterator items = list.items(); while (items.hasNext()) { DataRepository.DataListItem item = (DataRepository.DataListItem)items.next(); String name = (String)item.getField("name"); String address = (String)item.getField("nodename"); String bytes = (String)item.getField("byte"); String[] bytearray = bytes.split(","); UByte[] b = new UByte[bytearray.length]; for (int i = 0; i < bytearray.length; i++) { b[i] = UByte.parseUByte(bytearray[i]); } //UByte b = UByte.parseUByte((String)item.getField("byte")); boolean pub = ((String)item.getField("public")).equals("true"); String remotebtn = item.containsField("remotebutton") ? (String)item.getField("remotebutton") : ""; roomObjects.put(name, new GenRoomObject(name, address, b, remotebtn, pub)); } } //no room objects found in data repository else { _info.println("roomobjects-list is missing. no room objects defined!"); } //if we have any room objects if (!roomObjects.isEmpty()) { //lets send requests for their remote control buttons MbPacket p = new MbPacket(); p.setDestination(new MbLocation("self", "RemoteControl")); Iterator it = roomObjects.keySet().iterator(); while (it.hasNext()) { String key = (String) it.next(); GenRoomObject o = (GenRoomObject) roomObjects.get(key); if (o != null) { p.appendContents(" <buttonrequest button=\"" + o.remoteButton + "\" module=\"" + name() + "\" />"); } } sendPacket(p); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desire...
[ "0.75493157", "0.7349374", "0.7113024", "0.708874", "0.7050349", "0.6986862", "0.6986862", "0.69415015", "0.6891201", "0.68491226", "0.68411756", "0.6739073", "0.6730846", "0.6730846", "0.6730846", "0.6730846", "0.6730846", "0.6730846", "0.6730846", "0.6730846", "0.6730846", ...
0.0
-1
Shuts down this module.
public void shutdown() { //shut down MbModule super.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown() {\n logger.info(\"Shutting down modules.\");\n for (Module module : modules) {\n module.stop();\n }\n logger.info(\"Shutting down reporters.\");\n for (Reporter reporter : reporters.values()) {\n reporter.stop();\n }\n }", ...
[ "0.6849488", "0.6817201", "0.6767838", "0.67192614", "0.6648698", "0.6590129", "0.6532999", "0.6523932", "0.6518235", "0.64833164", "0.6427158", "0.642021", "0.64103043", "0.6409358", "0.63886803", "0.63886803", "0.63886803", "0.63886803", "0.6365414", "0.6354549", "0.6346757...
0.6853002
0
Retreives the full code for your HTMLpage. This is formatted as plain text and must be valid HTMLcode.
public String getHTMLPage() { String s = "<html><body>" + MySystem.lineBreak; s += "<h1>Room Control module</h1>" + MySystem.lineBreak; s += "<p>This module controls any on/off-node connected to ARNE bus.</p>" + MySystem.lineBreak; s += "<h2>Controls:</h2>"; s += "<center><p><table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">"; Iterator it = roomObjects.keySet().iterator(); while (it.hasNext()) { GenRoomObject o = (GenRoomObject)roomObjects.get(it.next()); if (o!=null) { if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml) s += "<tr><td>" + o.name + "</td><td>[<a href=\"toggle:" + o.name + "\">toggle</a>]</td><td>[<a href=\"on:" + o.name + "\">ON</a>]</td><td>[<a href=\"off:" + o.name + "\">OFF</a>]</td></tr></tr>"; } } } s += "</table></center>"; s += "</body></html>"; return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "private void getHtmlCode() {\n\t try {\n\t Document doc = Jsoup.connect(\"http://www.example.com/\").get();\n\t Element content = doc.select(\"a\").first();\n//\t return content.text();\n\t textView.setText(content....
[ "0.7079542", "0.69668615", "0.6666548", "0.63745594", "0.62013465", "0.6019898", "0.6008636", "0.5964857", "0.59584224", "0.59407324", "0.59385926", "0.5937692", "0.5895134", "0.58727986", "0.5871272", "0.58586454", "0.5856123", "0.58067", "0.5802325", "0.5801629", "0.5801629...
0.59028965
12
This method is invoked when a link is pressed on your HTMLpage.
public void linkPressed(String href) { String[] s = href.split(":"); if (s.length >= 2) { /* Ex: "toggle:Window lamp" this means we should toggle the Window lamp. */ if (s[0].equals("toggle")) { GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]); if (o != null) { toggleRoomObject(o.address, o.byteValue); } } /* Ex: "on:Window lamp" this means we should turn ON the Window lamp. */ else if (s[0].equals("on")) { GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]); if (o != null) { setRoomObject(o.address, o.byteValue ,true); } } /* Ex: "off:Window lamp" this means we should turn OFF the Window lamp. */ else if (s[0].equals("off")) { GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]); if (o != null) { setRoomObject(o.address, o.byteValue, false); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HtmlPage clickLink();", "public interface LinkClickHandler { void onLinkClicked(GURL url); }", "HtmlPage clickSiteLink();", "public void hyperlinkUpdate(HyperlinkEvent event) {\r\n\t\t// TODO add open link in default browser\r\n\t\tif (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n\t\t\ttr...
[ "0.793928", "0.713277", "0.70585114", "0.69288236", "0.69051707", "0.67230064", "0.66324055", "0.6568756", "0.6554199", "0.6470578", "0.640359", "0.6374393", "0.63710696", "0.6356472", "0.61831015", "0.6182693", "0.613032", "0.6114448", "0.61121124", "0.6104386", "0.6040094",...
0.669091
6
Called when start of a new element is found in the XMLdata. Ex: Element name would then be "name" and attribute list would contain "value1" and "value2" mapped to the attribute names "attr1" and "attr2".
public void XMLstartElement(String element, HashMap attributes) { /** * Ex: <remotecontrol button="NUMERIC4" state="DOWN" /> * This is a notification from the remote control module * about one of our requested remote control buttons have * been pressed. */ if (element.equals("remotecontrol") && attributes.containsKey("button") && attributes.containsKey("state")) { String state = (String)attributes.get("state"); String button = (String)attributes.get("button"); //find all room objects that are associated with this remote button Iterator it = roomObjects.values().iterator(); while (it.hasNext()) { GenRoomObject o = (GenRoomObject)it.next(); if (o.remoteButton.equals(button)) { //toggle all such room objects sendRoomObject(o.address, o.byteValue, state); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tCurrentTag=arg2;\n\t\tSystem.out.println(\"此处处理的元素是:\"+arg2);\n\t}", "@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tS...
[ "0.66337144", "0.6566325", "0.65626186", "0.65414804", "0.649536", "0.643129", "0.63634205", "0.63603044", "0.6336592", "0.62593615", "0.6251355", "0.6220737", "0.6201695", "0.60727394", "0.60564333", "0.6052326", "0.6035801", "0.60312957", "0.6026395", "0.60256004", "0.60220...
0.52573377
99
Toggles a room object (=lamp) by telling the RoomControl node to toggle a specific output.
private void toggleRoomObject(String address, UByte[] value) { //create a packet and address it to the ARNE module MbPacket p = new MbPacket(); p.setDestination(new MbLocation("self", "ARNE")); //ARNE packet in XML-format String contentValueData = ""; for (int i = 0; i < value.length; i++) { contentValueData = contentValueData + "<byte id=\"" + (i+2) + "\" value=\"" + Integer.toString(value[i].shortValue()) + "\"/>"; } int arneBytes = value.length+1; p.setContents("<arnepacket bytes=\"" + arneBytes + "\" destnode=\"" + address +"\">" + "<byte id=\"1\" value=\"240\"/>" + contentValueData + "</arnepacket>"); sendPacket(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public void toggle() {\n if (isOn()) {\n turnOff();\n } ...
[ "0.6367669", "0.62537104", "0.60852695", "0.5937721", "0.5918732", "0.58562386", "0.585109", "0.58077306", "0.57578105", "0.57345796", "0.56948096", "0.56855977", "0.5683341", "0.56099635", "0.5591825", "0.5590272", "0.5576621", "0.55585825", "0.55256456", "0.5491386", "0.548...
0.5319919
39
Sets the state of a room object (=lamp) by telling the RoomControl node either to turn on or to turn off the specified output.
private void setRoomObject(String address, UByte[] value, boolean state) { //create a packet and address it to the ARNE module MbPacket p = new MbPacket(); p.setDestination(new MbLocation("self", "ARNE")); //ARNE packet in XML-format String contentValueData = ""; for (int i = 0; i < value.length; i++) { contentValueData = contentValueData + "<byte id=\"" + (i+2) + "\" value=\"" + Integer.toString(value[i].shortValue()) + "\"/>"; } int arneBytes = value.length+1; p.setContents("<arnepacket bytes=\"" + arneBytes + "\" destnode=\"" + address + "\">" + "<byte id=\"1\" value=\"" + (state==true ? "01" : "02") + "\"/>" + contentValueData + "</arnepacket>"); sendPacket(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "void setShutterLEDState(boolean on);", "public void turn_on () {\n this.on = tru...
[ "0.638647", "0.6314527", "0.6209645", "0.6120256", "0.6099658", "0.60306317", "0.59891695", "0.5964885", "0.5934901", "0.5927216", "0.59268814", "0.5907273", "0.58774847", "0.5809775", "0.5803902", "0.5794733", "0.57927376", "0.5792232", "0.5784248", "0.57564586", "0.57442385...
0.0
-1
Will be called when our GUI should be shown.
public void renderGUI(Container drawArea) { gui.render(drawArea); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initAndShowGUI() {\n }", "public void showGui()\n {\n // TODO\n }", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public void display() {\r\n\t\tsetVisible(true);\r\n\t}", "public void onStart() {\r\n\t\tthis.setVisible(true);\r\n\t...
[ "0.8061463", "0.77596515", "0.7606301", "0.7559288", "0.7550459", "0.75048286", "0.74808586", "0.7391462", "0.73216075", "0.7309118", "0.72946525", "0.7243948", "0.72242266", "0.7173344", "0.71710795", "0.7168134", "0.7156492", "0.7149167", "0.71369976", "0.71077144", "0.7093...
0.0
-1
was this a room objectbutton press?
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().startsWith("roomobject:")) { //split its actioncommand to find out which lamp it was for String[] tokens = e.getActionCommand().split("roomobject:"); //try to find a room object with this name GenRoomObject o = (GenRoomObject)roomObjects.get(tokens[1]); //if found if (o!=null) { //toggle corresponding room object toggleRoomObject(o.address, o.byteValue); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void roomOnePressed() {\r\n\t\tkeys.get(keys.put(Keys.ROOM_ONE, true));\r\n\t}", "private void chatRoomBtnListener() {\n chatRoomBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n ...
[ "0.6742808", "0.66505116", "0.6443003", "0.64404434", "0.6431224", "0.64281476", "0.6425279", "0.6355255", "0.6353214", "0.6341751", "0.63308424", "0.61644334", "0.6161644", "0.61388457", "0.6084635", "0.60242087", "0.59943056", "0.59741306", "0.5940301", "0.59386677", "0.593...
0.67603487
0
/ This step checks that user session jwt is stored in local storage by 'C_C_M' key
@Then("assert user credentials are stored in local storage") public void assertUserCredentialsAreStoredInLocalStorage(){ LocalStorage local = ((WebStorage) profilePage.getWebDriver()).getLocalStorage(); assertFalse(local.getItem("C_C_M").isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isValidCredential(String jwtToken , HttpServletRequest request) throws Exception {\n// Once we get the token and session .. validate it.\n\n // means user no already registered and using an un authenticated session\n // may be session fixation attack\n if (SecurityCo...
[ "0.6235326", "0.6114925", "0.60516167", "0.59958124", "0.5846877", "0.5762545", "0.5593196", "0.55198497", "0.55192214", "0.5490506", "0.54592925", "0.54287106", "0.54165506", "0.541336", "0.5380253", "0.5366263", "0.5357027", "0.53561705", "0.53362453", "0.5332367", "0.53249...
0.65905905
0
Provides reprezentation of the contents as the URL parameters.
public interface Parametralizable { /** * Gets reprezentation of the contents as the URL parameters. * @return reprezentation of the contents as the URL parameters */ String toParameter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toURLParam();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"latitude\", latitude_file);\n params.put(\"longitude\", longitude_file);\n ...
[ "0.5937616", "0.5747331", "0.5717962", "0.56528485", "0.55624896", "0.5446817", "0.5384143", "0.53794974", "0.5353176", "0.53285736", "0.5314569", "0.5314569", "0.5314569", "0.5314569", "0.5314569", "0.5314569", "0.5314569", "0.5314569", "0.5302271", "0.5302271", "0.5302271",...
0.61017007
0
Gets reprezentation of the contents as the URL parameters.
String toParameter();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Parameter> uriParameters();", "Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }", "public interface Parametralizable {\n\n /**\n * Gets reprezentation of the contents as the URL parameters.\n * @return reprezentation of the contents as the ...
[ "0.63235503", "0.6223076", "0.6162046", "0.6109874", "0.602979", "0.6005558", "0.595373", "0.5852202", "0.5835729", "0.58271873", "0.57772976", "0.5766382", "0.57135665", "0.5692745", "0.56456846", "0.5629898", "0.5627311", "0.55855346", "0.5575257", "0.5573031", "0.55009705"...
0.0
-1
/ Using 2D array create a grocery list. Inside you should have an array of veggies, fruits, dairy and sweets. Retrieve all values from that array using 2 different loops
public static void main(String[] args) { String groceries[][]= {{"Tomatoes", "Potatoes", "Carrots", "Corn"}, {"Apples", "Watermelon", "Cherry"}, {"Milk", "Yogurt", "Sour cream", "Buttermilk"}, {"Candy", "Cake", "Marshmallows"}}; for (String []grocery:groceries) { for(String g:grocery) { System.out.println(g + " "); } for (int i=0; i<groceries.length; i++) { for (int j = 0; j < groceries[i].length; j++){ String item = groceries[i][j]; System.out.println(item + " "); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String[] groceryItems = {\"apple\", \"banana\", \"grape\", \"strawberry\", \"blueberry\", \"kiwi\"};\n float[] prices = {1.99f, 0.99f, 4.65f, 3.89f, 3.88f, 2.88f};\n int indexOfGroceryItems = 0;\n int countGroceryItems = 0;\n int charCou...
[ "0.5923764", "0.577089", "0.57108873", "0.5576303", "0.5546258", "0.5497681", "0.5435701", "0.5423799", "0.5386494", "0.53854847", "0.53777707", "0.5349561", "0.53371894", "0.5325357", "0.53214276", "0.5294372", "0.52604264", "0.5239979", "0.52383655", "0.5233383", "0.5226028...
0.61895394
0
program to partition a linked list around a value k
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void partition();", "Node partition(Node l,Node h)\n {\n // set pivot as h element\n int x = h.data;\n \n // similar to i = l-1 for array implementation\n Node i = l.prev;\n \n // Similar to \"for (int j = l; j <= h- 1; j++)\"\n for(Node j=l; j!=...
[ "0.6937231", "0.6847854", "0.6766611", "0.6765385", "0.6738539", "0.65700555", "0.65219885", "0.64988035", "0.6459629", "0.6456733", "0.644173", "0.64389956", "0.641835", "0.6407268", "0.6365431", "0.6331154", "0.6318256", "0.6298694", "0.6296719", "0.6280343", "0.62299895", ...
0.0
-1
Constructor, establishes room information and the number of fires within
public Room(String roomName, int rows, int columns, int numOfFires) { super(roomName); this.rows = rows + 1; this.columns = columns + 1; this.numOfFires = numOfFires; // TODO: Find way to handle this dynamically? this.flammableItemCount = 0; this.itemsOnFire = 0; fireLocations = new Point[numOfFires]; // TODO: Work with above, handle dynamically? roomPoints = new Point[this.rows][this.columns]; fillRoomWithAir(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}", "public Room(int noOfWindows) {\n\t\tthis.windows = noOfWindows;\n\t\tthis.floor=\"\";\n\t\tthis.wall=\"\";\n\t}", "private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<Str...
[ "0.6639898", "0.6639081", "0.6368242", "0.6304737", "0.6234862", "0.619584", "0.6148841", "0.61425024", "0.60784286", "0.6070285", "0.60453683", "0.6035934", "0.6023992", "0.6005472", "0.59926647", "0.59852505", "0.59384596", "0.59291923", "0.59277344", "0.59247285", "0.59196...
0.74329454
0
Return the number of flammable items in the room
public int getFlammableItemCount() { return flammableItemCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getItemsCount();", "int getItemsCount();", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "int getNumItems();", "public int weaponCount(){\n\t\treturn weaponList.size();\n\t}", "public int numberOfItems()\n {\n return dessertList.size();\n }", "default int countIte...
[ "0.69987285", "0.69987285", "0.6976728", "0.69634795", "0.69147843", "0.67064", "0.6675668", "0.66421384", "0.6623174", "0.65946025", "0.65437955", "0.65437955", "0.6530368", "0.6530362", "0.65200955", "0.65200955", "0.65200955", "0.6501982", "0.65018666", "0.65018666", "0.64...
0.7086033
0
Set the number of flammable items in the room
public void setFlammableItemCount(int flammableItemCount) { this.flammableItemCount = flammableItemCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumOfMenuItems(int _numOfMenuItems){\n numOfMenuItems = _numOfMenuItems;\n }", "void setNoOfBuckets(int noOfBuckets);", "void setSpikesPerChunk(VariableAmount count);", "private void setSpritesCount(int count) {\n this.count = count;\n }", "public void setCount(int count)\r...
[ "0.651829", "0.6396574", "0.6395885", "0.6344935", "0.6344845", "0.6336555", "0.6265756", "0.6186947", "0.614635", "0.61419183", "0.61419183", "0.61419183", "0.61137503", "0.60413843", "0.60399705", "0.6017771", "0.6011882", "0.5960606", "0.5947859", "0.59038913", "0.59007186...
0.7613276
0
Return the number of flammable items in the room
public int getItemsOnFire() { return itemsOnFire; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getFlammableItemCount() {\n return flammableItemCount;\n }", "int getItemsCount();", "int getItemsCount();", "public int howManyAvailable(Item i){/*NOT IMPLEMENTED*/return 0;}", "int getNumItems();", "public int weaponCount(){\n\t\treturn weaponList.size();\n\t}", "public int numberOf...
[ "0.70872676", "0.6997226", "0.6997226", "0.69768137", "0.6962659", "0.6914828", "0.67053854", "0.6674761", "0.66410893", "0.66221285", "0.65930986", "0.65425384", "0.65425384", "0.6529624", "0.6528719", "0.6519709", "0.6519709", "0.6519709", "0.6500715", "0.6500564", "0.65005...
0.0
-1
Set the number of items currently on fire in the room. Increment/decrement is handled by updateIgnition()
public void setItemsOnFire(int itemsOnFire) { this.itemsOnFire = itemsOnFire; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateOften(int i){\n countNum = i;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void increase()\n ...
[ "0.70171624", "0.67923677", "0.67923677", "0.67923677", "0.66669714", "0.66366607", "0.6541454", "0.65149546", "0.6502207", "0.6492914", "0.63569987", "0.6339418", "0.6319402", "0.6316945", "0.63109744", "0.62984836", "0.6270974", "0.62476313", "0.6240817", "0.62346065", "0.6...
0.6552507
6
Add an item to the room at given coordinates, and if it's flammable, increase the number of flammable items in the room
public void placeItemInRoomAtCoords(WorldItem item, int row, int column) { Point targetPoint = getPointAtLocation(row, column); targetPoint.setContainedItem(item); if (item instanceof FlammableItem) { flammableItemCount++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addItem(Item toAdd) throws ImpossiblePositionException, NoSuchItemException {\n int itemX = (int) toAdd.getXyLocation().getX();\n int itemY = (int) toAdd.getXyLocation().getY();\n ArrayList<Item> rogueItems = getRogue().getItems();\n int itemFound = 0;\n if ((itemX >= getWidth(...
[ "0.6394267", "0.62178195", "0.6150327", "0.60814995", "0.6047189", "0.59360385", "0.58812815", "0.58673024", "0.5865989", "0.586492", "0.5854199", "0.5839901", "0.5809295", "0.5794686", "0.5741917", "0.5699113", "0.5687584", "0.5682811", "0.5681816", "0.5680078", "0.5677574",...
0.75319856
0
Check whether an item at a given point should be on fire
public void updateIgnition(Point point) { WorldItem item = point.getContainedItem(); if (item instanceof FlammableItem) { FlammableItem flammable = (FlammableItem) item; if (!flammable.isOnFire()) { if (point.getCurrentTemp() >= flammable.getCombustionThreshold()) { flammable.ignite(); itemsOnFire++; fireLocations[getLastSpotInArray(fireLocations)] = point; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean tileOnFire(float xTile, float yTile)\r\n/* 510: */ {\r\n/* 511:616 */ return (tileInBounds(xTile, yTile)) && (this.fire[((int)xTile)][((int)yTile)] != 0);\r\n/* 512: */ }", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = tru...
[ "0.7010859", "0.6893573", "0.6824029", "0.66994923", "0.6669244", "0.66615456", "0.665151", "0.6604221", "0.6573201", "0.6570162", "0.6557692", "0.6541", "0.6506952", "0.6491614", "0.6438424", "0.6415807", "0.64046216", "0.628901", "0.62861174", "0.62826145", "0.6263292", "...
0.5967662
38
Check whether a given point is within the currently known locations for fires
public boolean pointInFlammableLocations(Point point) { for (Point location : fireLocations) { if (location == point) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pointCheck(LatLng point, boolean valid);", "public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}", "public abstract boolean containsPoint(int x, int y);", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasLocation();", "boolean hasLo...
[ "0.6816477", "0.67334723", "0.66515195", "0.65896595", "0.65896595", "0.65896595", "0.6540178", "0.6540178", "0.6525592", "0.6480728", "0.64639246", "0.6435008", "0.64296985", "0.64154315", "0.63961995", "0.6377006", "0.6376731", "0.63529783", "0.63519585", "0.6351826", "0.63...
0.7550012
0
Toggle the alarm as necessary
public void updateAlarm(Point point) { WorldItem item = point.getContainedItem(); if (item instanceof Sensor) { Sensor alarm = (Sensor) item; if (!alarm.isAlarmed()) { if (point.getCurrentTemp() >= alarm.getAlarmThreshold()) { alarm.triggerAlarm(); } } else if (point.getCurrentTemp() < alarm.getAlarmThreshold()) { alarm.stopAlarm(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OnOffSwitch alarmSwitch();", "public void on_toggle( View view ) {\n if ( toggle.isChecked( ) ) { //if it just toggled on\n Calendar calendar = Calendar.getInstance( ); //get a calendar object\n calendar.set( Calendar.HOUR_OF_DAY, time_picker.getHour( ) ); //s...
[ "0.75814503", "0.7474552", "0.7337281", "0.6938999", "0.6805945", "0.66743016", "0.6643038", "0.65713227", "0.6520802", "0.6519319", "0.65181935", "0.6483627", "0.6479553", "0.64272016", "0.63508433", "0.63192105", "0.6294661", "0.62913394", "0.62594235", "0.6228461", "0.6223...
0.0
-1
Iterate through the points in the room and determine the temperature at each tick
public void update() { for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { Point point = getPointAtLocation(i, j); WorldItem item = point.getContainedItem(); calculatePointTemp(point); point.update(); if (item instanceof FlammableItem) { updateIgnition(point); } else if (item instanceof SimulatedSensor) { updateAlarm(point); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getTemperatureAndHumidity() {\n // Get Temp and Humid sensors only at PM10 locations, otherwise\n // the connection takes too long to load all\n for (Sensor pm10sensor : this.sensorsPm10) {\n this.sensorsTempHumid.addAll(\n this.getSensors(\n ...
[ "0.65517735", "0.65229434", "0.6434312", "0.64040154", "0.6265769", "0.62606233", "0.62482643", "0.61951655", "0.61580455", "0.6132202", "0.6131432", "0.6092606", "0.60821205", "0.604691", "0.60244226", "0.6013264", "0.6004523", "0.59891313", "0.5943242", "0.5928852", "0.5922...
0.537867
70
TODO: Handle calculations in another class, Room should manage room responsibilities
public void calculatePointTemp(Point point) { WorldItem containedItem = point.getContainedItem(); // Maintain temperature if the item here is flammable and on fire if (containedItem instanceof FlammableItem) { if (((FlammableItem) containedItem).isOnFire()) { return; } } // Temperature factors double radQDot = calcRadQDot(point); double convQDot = calcConvQDot(point); double totalQDot = radQDot + convQDot; point.setCurrentTemp(point.getCurrentTemp() + (KW_DEGREE_INCREASE * totalQDot)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "@Override\n public double getPrice()\n {\n return room.getPrice() + PRICE;\n }", "public Room getRoom0(){\n return basement;\n }", "public Room getRoom()\n {\n return currentRoom;\n }", "public ...
[ "0.5944763", "0.5916816", "0.5892981", "0.5774421", "0.5752198", "0.56749094", "0.5638968", "0.5638968", "0.5626647", "0.55964243", "0.559524", "0.55791855", "0.55463666", "0.54676217", "0.54632556", "0.5446961", "0.5429305", "0.54230607", "0.54112", "0.53686076", "0.5346224"...
0.0
-1
Calculate the radiative qdot
public double calcRadQDot(Point point) { if(numOfFires == 0) return 0; int currentCol = point.getColumn(); int currentRow = point.getRow(); double minDist = 0; for (Point fire : fireLocations) { if (fire != null) { int fireCol = fire.getColumn(); int fireRow = fire.getRow(); double dist = distFromFire(currentCol, currentRow, fireCol, fireRow); if (dist < minDist) { minDist = dist; } } } // Xr * qDot for air in room double factor = (XR_FOR_AIR_IN_ROOM * QDOT_FOR_AIR_IN_ROOM); // Account for division by zero if (minDist > 0) { return (factor / (4 * Math.PI * Math.pow(minDist, 2))); } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void solveQuadraticEquation() {\n }", "double Q(DoubleMatrix1D pt1, DoubleMatrix1D pt2, DoubleMatrix1D scale){\n DoubleMatrix1D diff = pt2.copy().assign(pt1,Functions.minus);\n\n //ok now we just need a standard normal probability\n //total probability is product of single-v...
[ "0.572581", "0.5681769", "0.553922", "0.54740393", "0.5464066", "0.54479307", "0.53358305", "0.5327024", "0.5311094", "0.5290285", "0.52678114", "0.5262535", "0.5236347", "0.52300274", "0.52249676", "0.52231807", "0.5214274", "0.5195217", "0.51907486", "0.5189905", "0.5188857...
0.6060156
0
Determine the distance of a given point from fire
public double distFromFire(int x1, int y1, int x2, int y2) { return Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double distance (double px, double py);", "private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// ...
[ "0.7217241", "0.7160959", "0.7159617", "0.69735354", "0.6968267", "0.69280446", "0.69165045", "0.6906941", "0.6892746", "0.68611854", "0.6846087", "0.6839413", "0.6733699", "0.673138", "0.66461414", "0.6629607", "0.6629375", "0.6594435", "0.6573923", "0.6570837", "0.65705776"...
0.75278425
0
Calculate the convective q dot
public double calcConvQDot(Point point) { Point[] oneAway = getSpacesOneAway(point); double localAverage = getAverageSurroundingTemp(oneAway); double currentTemp = point.getCurrentTemp(); if (localAverage > currentTemp) { return (HEAT_TRANSFER_COEFFICIENT * (localAverage - currentTemp)); } else { return (HEAT_TRANSFER_COEFFICIENT * (currentTemp - localAverage)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double dot(Vec vthat);", "float dot(IVec3 v);", "private double dotProduct(double x, double y, double z, double d, double e, double f){\n\t\tdouble length1 = Math.sqrt(x*x + y*y + z*z);\t// Calculate length of [x, y]\n\t\tdouble length2 = Math.sqrt(d*d + e*e + f*f);\t// Calculate length of [d, e]\n\t\t/...
[ "0.61390686", "0.61175257", "0.61097455", "0.5906807", "0.5878849", "0.58140594", "0.5693175", "0.56892645", "0.55697423", "0.5569446", "0.5524149", "0.5519152", "0.54858404", "0.5482774", "0.5445821", "0.54360044", "0.5404039", "0.53944033", "0.53860164", "0.5371488", "0.536...
0.6490539
0
Get all points that are within one point away from the current point
public Point[] getSpacesOneAway(Point point) { int col = point.getColumn(); int row = point.getRow(); Point[] oneAway = new Point[SURROUNDING_POINTS_ON_GRID]; int count = 0; // Get all points that aren't the other points. for(int i = row - 1; i <= row + 1; i++) for(int j = col - 1; j <= col + 1; j++) { if(i != row || j != col) { if(pointExists(i, j)) oneAway[count] = getPointAtLocation(i, j); else oneAway[count] = null; count++; } } // end nested for return oneAway; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Point> getAdjacentLoosePoints(Point p, Set<Point> loose) {\n \tArrayList<Point> points = new ArrayList<Point>();\n \t\n \t// check point directly to the left\n \tif (p.getX() + 1 < width) {\n \t\tPoint possible = new Point((int) p.getX() + 1, (int) p.getY());\n \t\tif (loose.cont...
[ "0.6602111", "0.60202694", "0.58918786", "0.5855866", "0.5698687", "0.5698039", "0.5647366", "0.5645151", "0.5585078", "0.5565271", "0.55595565", "0.5525698", "0.55150646", "0.5512592", "0.5510288", "0.54900134", "0.5471028", "0.5452995", "0.5430612", "0.54153025", "0.5411106...
0.6459924
1
Check whether a given point exists at the given row and column
public boolean pointExists(int row, int column) { return (row > 0 && row < rows && column > 0 && column < columns); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean positionExists(int row, int column) {\n\t\treturn row >= 0 && row < rows && column >= 0 && column < columns;\n\t}", "public abstract boolean containsPoint(int x, int y);", "private void ensureLocationPointFound(Integer row, Integer column) {\n\n\t\tif (row == null || column == null || row <= 0 ...
[ "0.787829", "0.76210195", "0.726582", "0.68576384", "0.67936003", "0.67324215", "0.67294496", "0.6708741", "0.67000395", "0.66740185", "0.66740185", "0.66740185", "0.6666", "0.66587055", "0.665638", "0.66552025", "0.6635171", "0.6614898", "0.6603896", "0.65968543", "0.6588232...
0.8431802
0
Return whether there are any flammable items in the room that are not currently on fire
public boolean isAllBurntUp() { return (flammableItemCount == itemsOnFire); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasFire() {\n/* 4796 */ if (this.vitems == null)\n/* 4797 */ return false; \n/* 4798 */ return this.vitems.hasFire();\n/* */ }", "public boolean burn(){\r\n for(ListIterator<Item> iter = listIterator();iter.hasNext();)\r\n if(iter.next().flammable) iter.remov...
[ "0.6986915", "0.690616", "0.67588794", "0.6679004", "0.65291053", "0.6407625", "0.6369769", "0.6274048", "0.6240447", "0.6222254", "0.62038326", "0.6188157", "0.6180119", "0.61762893", "0.6158609", "0.61423576", "0.6134838", "0.613447", "0.6132914", "0.6128407", "0.6126133", ...
0.75056654
0
TODO Autogenerated method stub
@Override public void savePulse(Pulse pulse) { pulseDao.savePulse(pulse); }
{ "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 updatePulse(Pulse pulse) { pulseDao.update(pulse); }
{ "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 List<Pulse> getAll() { return pulseDao.getAll(); }
{ "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 delInfoById(int id) { pulseDao.delete(id); }
{ "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 Pulse getPulseById(int id) { return pulseDao.getPulseById(id); }
{ "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 List<Pulse> getPulseByStation(String station) { List<Pulse> pulses = pulseDao.getPulseByStation(station); return pulses; }
{ "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 List<Pulse> getPulseByState(String station, String state) { List<Pulse> pulses = pulseDao.getPulseByState(station,state); return pulses; }
{ "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
Add the global patch category (name, id, number, etc.)
public JComponent addNameGlobal(Color color) { Category globalCategory = new Category(this, getSynthName(), color); //globalCategory.makeUnresettable(); JComponent comp; String[] params; HBox hbox = new HBox(); VBox vbox = new VBox(); HBox hbox2 = new HBox(); comp = new PatchDisplay(this, 9); hbox2.add(comp); vbox.add(hbox2); comp = new StringComponent("Performance Name", this, "name", 15, "Name must be up to 15 ASCII characters.") { public String replace(String val) { return revisePatchName(val); } public void update(String key, Model model) { super.update(key, model); updateTitle(); } }; vbox.addBottom(comp); // doesn't work right :-( hbox.add(vbox); /* LabelledDial delay = new LabelledDial("Delay", this, "hillclimbdelay", Style.COLOR_A(), 0, 5000); hbox.add(delay); */ hbox.add(Strut.makeHorizontalStrut(130)); globalCategory.add(hbox, BorderLayout.WEST); return globalCategory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComponent addNameGlobal(Color color)\n {\n Category globalCategory = new Category(this, getSynthName(), color);\n \n JComponent comp;\n String[] params;\n HBox hbox = new HBox();\n \n VBox vbox = new VBox();\n HBox hbox2 = new H...
[ "0.63063127", "0.61233073", "0.5990679", "0.5775156", "0.5760227", "0.55909866", "0.5584855", "0.5575721", "0.5529299", "0.5441444", "0.53964394", "0.53096455", "0.52758676", "0.52555287", "0.52341676", "0.5153589", "0.5149698", "0.5149698", "0.5148193", "0.5124199", "0.51034...
0.59341174
3
This is called by parsers etc. which may have ALREADY set the push value to false, so I need to restore it to either true or false, rather than just setting it to true at the end.
public void resetFX(int fx) { boolean wasPushing = undo.getWillPush(); undo.setWillPush(false); for(int fxtype = 1; fxtype < FX_GROUP.length; fxtype++) { model.setUpdateListeners(false); // clear for(int index = 0; index < FX_INDICES[FX_GROUP[fxtype]].length; index++) { model.set("fx" + fx + "class" + FX_GROUP[fxtype] + "param" + index, 0); } // set for(int pcl = 0; pcl < FX_PCL_LIST[FX_GROUP[fxtype]].length; pcl++) { int value = FX_PRESETS[fxtype][pcl]; // note NOT FX_GROUP[fxtype] int bytenum = FX_PCL_LIST[FX_GROUP[fxtype]][pcl][ST_BYTE]; // unused int bit = FX_PCL_LIST[FX_GROUP[fxtype]][pcl][ST_BIT]; // unused int bitlen = FX_PCL_LIST[FX_GROUP[fxtype]][pcl][PA_LEN]; // unused int paramnum = FX_PCL_LIST[FX_GROUP[fxtype]][pcl][PA_NUM]; int parambit = FX_PCL_LIST[FX_GROUP[fxtype]][pcl][PA_BIT]; int index = -1; for(int i = 0; i < FX_INDICES[FX_GROUP[fxtype]].length; i++) { if (FX_INDICES[FX_GROUP[fxtype]][i] == paramnum) { index = i; break; } } if (index == -1) // unused (typically says "reserved for future use") { //System.err.println("Warning (KorgWavestationPerformance): PCL List entry not found: " + fxtype + ":" + FX_GROUP[fxtype] + ":" + paramnum + " (probably 'reserved')."); } else { String key = "fx" + fx + "class" + FX_GROUP[fxtype] + "param" + index; model.set(key, model.get(key) | (value << parambit)); } } } revise(); model.setUpdateListeners(true); int fxtype = model.get("fx" + fx + "type"); if (fxtype == 0) return; // update int[] indices = FX_INDICES[FX_GROUP[fxtype]]; for(int i = 0; i < indices.length; i++) { String key = "fx" + fx + "class" + FX_GROUP[fxtype] + "param" + i; model.set(key, (model.get(key, 0))); } undo.setWillPush(wasPushing); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean pushValuesBackward() {\r\n\t\tboolean mod = false;\r\n\r\n\t\tValue resultBusValue = getResultBus().getValue();\r\n\r\n\t\tValue newValue = new Value(resultBusValue.getSize(),\r\n\t\t\t\tresultBusValue.isSigned());\r\n\r\n\t\tfor (int i = 0; i < resultBusValue.getSize(); i++) {\r\n\t\...
[ "0.5937288", "0.5919501", "0.57736355", "0.57106215", "0.56731313", "0.56665325", "0.5651665", "0.56462544", "0.5592564", "0.55909944", "0.5568643", "0.5559906", "0.55442446", "0.55235857", "0.55155396", "0.5495741", "0.54946554", "0.5478513", "0.5476467", "0.54691714", "0.54...
0.0
-1
looks like 300 is about the minimum, else we get a sysex checksum error on the next sysex dump, probably because bytes were dropped
public void changePatch(Model tempModel) { // we need to do this in order to be able to write. See Developer FAQ byte[] midi_mesg = paramBytes(MIDI_MODE, MULTISET_MIDI_MODE); tryToSendSysex(midi_mesg); // this too. byte[] midi_mesg_2 = paramBytes(MIDI_MODE, PERFORMANCE_MIDI_MODE); tryToSendSysex(midi_mesg_2); // change the bank try { tryToSendMIDI(new ShortMessage(ShortMessage.CONTROL_CHANGE, getChannelOut(), 0, MIDI_BANKS[tempModel.get("bank", 0)])); } catch (Exception e) { Synth.handleException(e); } // change the number try { tryToSendMIDI(new ShortMessage(ShortMessage.PROGRAM_CHANGE, getChannelOut(), tempModel.get("number", 0) + MIDI_PROG_CHANGE_OFFSETS[tempModel.get("bank", 0)], 0)); } catch (Exception e) { Synth.handleException(e); } // specify that we're editing said bank byte[] bank_mesg = paramBytes(CURRENT_BANK, edisynToWSBank[tempModel.get("bank", 0)]); tryToSendSysex(bank_mesg); // specify that we're editing said number byte[] prog_mesg = paramBytes(CURRENT_PROG, tempModel.get("number", 0)); tryToSendSysex(prog_mesg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void calculateChecksum(byte[] sysex, int start, int end, int offset) {\n }", "protected int trimSysex(Patch patch) { // no driver overrides this now.\n if (trimSize > 0 && patch.sysex.length > trimSize\n && patch.sysex[trimSize - 1] == (byte) 0xf7) {\n ...
[ "0.616025", "0.5911924", "0.5790788", "0.54405737", "0.5298284", "0.5275243", "0.5269966", "0.5253717", "0.5179034", "0.5169041", "0.5148989", "0.5141735", "0.5117585", "0.5078275", "0.50426006", "0.50372314", "0.5037062", "0.5018661", "0.5016835", "0.49777028", "0.49764338",...
0.0
-1
///// OTHER ABSTRACT METHODS
public boolean gatherPatchInfo(String title, Model change, boolean writing) { JComboBox bank = new JComboBox(BANKS); bank.setEditable(false); bank.setMaximumRowCount(32); bank.setSelectedIndex(model.get("bank")); JTextField number = new SelectedTextField("" + (model.get("number")), 3); while(true) { boolean result = showMultiOption(this, new String[] { "Bank", "Patch Number"}, new JComponent[] { bank, number }, title, "Enter the Bank and Patch number."); if (result == false) return false; int n; try { n = Integer.parseInt(number.getText()); } catch (NumberFormatException e) { showSimpleError(title, "The Performance Number must be an integer 0 ... 49"); continue; } if (n < 0 || n > 49) { showSimpleError(title, "The Performance Number must be an integer 0 ... 49"); continue; } change.set("bank", bank.getSelectedIndex()); change.set("number", n); return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "protected abstract Set method_1559();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract Object mo26777y();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override...
[ "0.6537685", "0.65050966", "0.637877", "0.6376961", "0.63496584", "0.6218166", "0.6205544", "0.62024665", "0.6175344", "0.6142222", "0.61331457", "0.61331457", "0.61331457", "0.6121862", "0.6110966", "0.6110966", "0.6100783", "0.60966563", "0.6082222", "0.60747004", "0.602694...
0.0
-1
check the easy stuff out of range parameters
public void revise() { super.revise(); String nm = model.get("name", "Init"); String newnm = revisePatchName(nm); if (!nm.equals(newnm)) model.set("name", newnm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void checkFromToBounds(int paramInt1, int paramInt2, int paramInt3) {\n/* 386 */ if (paramInt2 > paramInt3) {\n/* 387 */ throw new ArrayIndexOutOfBoundsException(\"origin(\" + paramInt2 + \") > fence(\" + paramInt3 + \")\");\n/* */ }\n/* */ \n/* 390 */ if (paramInt...
[ "0.71191156", "0.6898209", "0.68941605", "0.6874332", "0.6651304", "0.66264004", "0.66166204", "0.66042846", "0.6583461", "0.6579103", "0.6539809", "0.65239227", "0.65198344", "0.6498091", "0.6480788", "0.64802676", "0.64763105", "0.64448434", "0.6419316", "0.63998765", "0.63...
0.0
-1
getPatchLocationName() is called from sprout() as a test to see if we should enable batch downloading. If we haven't yet created an .init file, then parameters won't exist yet and this method will bomb badly. So we return null in this case.
public String getPatchLocationName(Model model) { if (!model.exists("number")) return null; if (!model.exists("bank")) return null; int number = model.get("number"); return BANKS[model.get("bank")] + " " + (number > 9 ? "" : "0") + number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPatchLocationName(Model model)\n {\n \n return null;\n }", "public ScriptedPatchRequest getPatchIfMissing() {\n return patchIfMissing;\n }", "private String searchForInitFileName() {\n String homeDirectoryInitFileName =\n System.getProperty(\"user.home...
[ "0.5617162", "0.5488319", "0.5438397", "0.53855485", "0.53772146", "0.5167949", "0.5110185", "0.5083056", "0.50595474", "0.5058895", "0.50409317", "0.49670386", "0.49586967", "0.49502283", "0.49275255", "0.48830834", "0.48781517", "0.48724347", "0.484538", "0.48276642", "0.48...
0.45545185
32
private String name; private String link; private String price;
@Override public void visitTag(Tag tag){ if (tag instanceof Div) { Div div = (Div) tag; String attr = div.getAttribute("class"); //detailed_rig //System.out.println("attr:" + attr); if("detailed_rig".equals(attr)){ //小区div //System.out.println("========================="+div.toHtml()); SpanVisitor sv = new SpanVisitor(); //LinkVisitor lv = new LinkVisitor(); //div.accept(lv); //link = lv.getLink(); div.accept(sv); Community com = new Community(sv.getName(), sv.getLink()+"esf/", sv.getPrice()); communityList.add(com); // System.out.println("name:"+name +" price:"+price + " link:"+link); } if("fanye".equals(attr)){ NextPageVisitor np = new NextPageVisitor(); div.accept(np); nextPageLink =np.getLink(); //System.out.println("link:" +np.getLink() ); } //line = textnode.toPlainTextString().trim(); //line = textnode.getText(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPrice(){return price;}", "public String getPrice() {\n return price;\n }", "public String getPrice() {\n return price;\n }", "public interface Goods {\n\n int price();\n String name();\n String description();\n\n}", "public Item() {\r\n this.name = \"\";...
[ "0.64407295", "0.6284822", "0.6284822", "0.61910725", "0.60651016", "0.59980595", "0.59318304", "0.59274745", "0.5896743", "0.5894813", "0.5889766", "0.5867534", "0.58534855", "0.5850806", "0.5823459", "0.58064544", "0.57692206", "0.57690924", "0.5754075", "0.5752994", "0.575...
0.0
-1
List of NamedColor objects
public ColorSet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getColorList()\n {\n \treturn colors;\n }", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + ...
[ "0.7694506", "0.7132024", "0.7076268", "0.70436156", "0.69716173", "0.6793313", "0.678463", "0.67193645", "0.6705016", "0.6665377", "0.65872025", "0.6507623", "0.6459109", "0.6447997", "0.64085513", "0.6394111", "0.63051355", "0.62928456", "0.6268986", "0.6267321", "0.6263830...
0.0
-1
0 if it friend, 1 if it pending , 2 if requested.
public String getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void acceptRequest(Friend pendingRequest);", "public void acceptFriendRequest(Friend friend);", "public Boolean getFriendAccepted() {\n return friendAccepted;\n }", "void noFriendsRetrieved();", "public void setPending(User main, User friend, Boolean accept){\n SQLiteDatabase db = getWritableDat...
[ "0.6779231", "0.62254167", "0.6086596", "0.60730267", "0.6021861", "0.6010389", "0.6010389", "0.5853862", "0.58341855", "0.5833385", "0.58113986", "0.5776171", "0.5764818", "0.5754002", "0.57199854", "0.5704222", "0.56822956", "0.56697214", "0.5663549", "0.5663549", "0.565669...
0.0
-1
Constructor which initializes the key and action name
BaseAction(int key, String name) { this.key = key; this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initKeys()\n {\n // You can map one or several inputs to one named action\n inputManager.addMapping(\"Left\", new KeyTrigger(KeyInput.KEY_J));\n inputManager.addMapping(\"Right\", new KeyTrigger(KeyInput.KEY_L));\n inputManager.addMapping(\"Up\", new KeyTrigger(KeyInput....
[ "0.66741776", "0.6514557", "0.65042156", "0.64959174", "0.64959174", "0.64959174", "0.64959174", "0.64959174", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.6474806", "0.647480...
0.7532686
0
This method return key value
@Override public int key() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "Object getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey...
[ "0.7688693", "0.7688693", "0.7688693", "0.7688693", "0.7688693", "0.7688693", "0.7671749", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0.75880593", "0....
0.0
-1